Skip to content

Commit 01edb9a

Browse files
committed
tighten helper
1 parent a25dd37 commit 01edb9a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/fread.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,8 @@ static inline const char *skip_to_comment_or_nonwhite(const char *ch)
276276
while (ch < eof && *ch == '\0') ++ch;
277277
if (!stripWhite) return ch;
278278

279-
const unsigned char stopSpace = (commentChar == ' ');
280-
const unsigned char stopTab = (commentChar == '\t');
281-
282279
while (ch < eof && (*ch == ' ' || *ch == '\t')) {
283-
if ((stopSpace && *ch == ' ') || (stopTab && *ch == '\t')) break;
280+
if (*ch == commentChar) break;
284281
++ch;
285282
}
286283
return ch;

0 commit comments

Comments
 (0)