Skip to content

Commit 50998be

Browse files
committed
remove last TRUELENGTH
1 parent 248bab7 commit 50998be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void attribute_visible R_init_data_table(DllInfo *info)
213213
SEXP tmp = PROTECT(allocVector(INTSXP,2));
214214
if (LENGTH(tmp)!=2) error(_("Checking LENGTH(allocVector(INTSXP,2)) [%d] is 2 %s"), LENGTH(tmp), msg);
215215
// Use (long long) to cast R_xlen_t to a fixed type to robustly avoid -Wformat compiler warnings, see #5768
216-
if (TRUELENGTH(tmp)!=0) error(_("Checking TRUELENGTH(allocVector(INTSXP,2)) [%lld] is 0 %s"), (long long)TRUELENGTH(tmp), msg);
216+
if (growable_capacity(tmp)!=0) error(_("Checking TRUELENGTH(allocVector(INTSXP,2)) [%lld] is 0 %s"), (long long)growable_capacity(tmp), msg);
217217
UNPROTECT(1);
218218

219219
// According to IEEE (http://en.wikipedia.org/wiki/IEEE_754-1985#Zero) we can rely on 0.0 being all 0 bits.

0 commit comments

Comments
 (0)