diff options
Diffstat (limited to 'tokenizer.c')
-rw-r--r-- | tokenizer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokenizer.c b/tokenizer.c index 342bbd7..6481cfb 100644 --- a/tokenizer.c +++ b/tokenizer.c @@ -214,7 +214,7 @@ static bool tokenize_string(Tokenizer *t, char *str) { case '/': /* single line comment */ tokr_nextchar(t); for (t->s++; *t->s && *t->s != '\n'; t->s++); - if (t->s) tokr_nextchar(t); /* skip newline */ + if (*t->s) tokr_nextchar(t); /* skip newline */ break; case '*': { /* multi line comment */ tokr_nextchar(t); |