Skip to content

Commit 9afc016

Browse files
Use %ld, not %td
1 parent 7620b46 commit 9afc016

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/fread.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,8 +1911,9 @@ int freadMain(freadMainArgs _args) {
19111911
} else if (jump0size==0) {
19121912
DTPRINT(_(" Number of sampling jump points = %d because jump0size==0\n"), nJumps);
19131913
} else {
1914-
DTPRINT(_(" Number of sampling jump points = %d because (%td bytes from row 1 to eof) / (2 * %td jump0size) == %td\n"),
1915-
nJumps, sz, jump0size, sz/(2*jump0size));
1914+
DTPRINT(_(" Number of sampling jump points = %d because (%ld bytes from row 1 to eof) / (2 * %ld jump0size) == %ld\n"),
1915+
// NB: ptrdiff_t should use '%td', but that's a C99 addition, which may not work with old Rtools (pre-Rtools42)
1916+
nJumps, (long int)sz, (long int)jump0size, (long int)(sz/(2*jump0size)));
19161917
}
19171918
}
19181919
nJumps++; // the extra sample at the very end (up to eof) is sampled and format checked but not jumped to when reading

0 commit comments

Comments
 (0)