Skip to content

Commit 1b4cc74

Browse files
Skip the remainder of stream if there are no word_deletions
1 parent 7bd324b commit 1b4cc74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/src/parser/tokenizer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ int parser_consume_rows(parser_t *self, size_t nrows) {
11931193
char_count = (self->word_starts[word_deletions - 1] +
11941194
strlen(self->words[word_deletions - 1]) + 1);
11951195
} else {
1196-
char_count = 1;
1196+
char_count = self->stream_len;
11971197
}
11981198

11991199
TRACE(("parser_consume_rows: Deleting %d words, %d chars\n", word_deletions,

0 commit comments

Comments
 (0)