Fixed issue with weird undefinitions

This commit is contained in:
Devine Lu Linvega 2024-04-26 22:07:53 -07:00
parent 06f2cd4487
commit 8b618d2425
1 changed files with 3 additions and 2 deletions

View File

@ -196,8 +196,9 @@ find_rule(char *s, char *cap)
if(*s == '(') s++, cap--; if(*s == '(') s++, cap--;
while(r < rules_) { while(r < rules_) {
char *ss = s, *a = r->a; char *ss = s, *a = r->a;
while(*ss++ == *a++) if(a)
if(!*a) return r; while(*ss++ == *a++)
if(!*a) return r;
r++; r++;
} }
return r; return r;