We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13f1db8 commit 81deaa9Copy full SHA for 81deaa9
src/fread.c
@@ -2544,7 +2544,8 @@ int freadMain(freadMainArgs _args)
2544
if (thisType != joldType) { // rare out-of-sample type exception.
2545
if (!checkedNumberOfFields && !fill) {
2546
// check this line has the correct number of fields. If not, don't apply the bump from this invalid line. Instead fall through to myStopEarly below.
2547
- if (j + countfields(&(const char*) { fieldStart }) != ncol) break;
+ char* fieldsRemaining = fieldStart;
2548
+ if (j + countfields(&fieldsRemaining) != ncol) break;
2549
checkedNumberOfFields = true;
2550
}
2551
if (thisType <= TOGGLE_BUMP(NUMTYPE)) {
0 commit comments