mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
End loop if nextc is -1
This commit is contained in:
+1
-1
@@ -3704,7 +3704,7 @@ parse_string(parser_state *p)
|
||||
char flag[4] = { '\0' };
|
||||
|
||||
newtok(p);
|
||||
while (c = nextc(p), ISALPHA(c)) {
|
||||
while (c = nextc(p), c != -1 && ISALPHA(c)) {
|
||||
switch (c) {
|
||||
case 'i': f |= 1; break;
|
||||
case 'x': f |= 2; break;
|
||||
|
||||
Reference in New Issue
Block a user