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 a25dd37 commit 01edb9aCopy full SHA for 01edb9a
src/fread.c
@@ -276,11 +276,8 @@ static inline const char *skip_to_comment_or_nonwhite(const char *ch)
276
while (ch < eof && *ch == '\0') ++ch;
277
if (!stripWhite) return ch;
278
279
- const unsigned char stopSpace = (commentChar == ' ');
280
- const unsigned char stopTab = (commentChar == '\t');
281
-
282
while (ch < eof && (*ch == ' ' || *ch == '\t')) {
283
- if ((stopSpace && *ch == ' ') || (stopTab && *ch == '\t')) break;
+ if (*ch == commentChar) break;
284
++ch;
285
}
286
return ch;
0 commit comments