Skip to content

Commit c1c4f76

Browse files
committed
Drop test for TRUELENGTH from init.c
1 parent be921b1 commit c1c4f76

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,6 @@ void attribute_visible R_init_data_table(DllInfo *info)
212212

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);
215-
// 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);
217215
UNPROTECT(1);
218216

219217
// 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)