another bug fix

This commit is contained in:
cozis
2022-01-22 02:09:18 +01:00
parent 3df0cc0a7d
commit c77a28896e
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ static Token *tokenize(Source *src, BPAlloc *alloc, Error *error)
while(i < len && isspace(str[i]))
i += 1;
if(str[i] == '#')
if(i < len && str[i] == '#')
{
i += 1;