Skip to content

Commit 40a9ded

Browse files
committed
fixed overzealous cast removal on double/pointer arithmetic
1 parent 77fb8ad commit 40a9ded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1932,7 +1932,7 @@ int freadMain(freadMainArgs _args) {
19321932
}
19331933
firstRowStart = ch;
19341934
} else {
1935-
ch = (jump == nJumps-1) ? eof - (0.5*jump0size) : // to almost-surely sample the last line
1935+
ch = (jump == nJumps-1) ? eof - (ptrdiff_t)(0.5*jump0size) : // to almost-surely sample the last line
19361936
pos + jump*((eof-pos)/(nJumps-1));
19371937
ch = nextGoodLine(ch, ncol);
19381938
}

0 commit comments

Comments
 (0)