mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-24 06:45:11 +00:00
Stopped matching non-opcode tokens that start with an opcode.
This commit is contained in:
parent
a5ec692b0a
commit
b60fa9d6dd
1 changed files with 2 additions and 2 deletions
|
@ -155,8 +155,8 @@ findopcode(char *s)
|
|||
continue;
|
||||
while(s[3 + m]) {
|
||||
if(s[3 + m] == '2') i |= (1 << 5); /* mode: short */
|
||||
if(s[3 + m] == 'r') i |= (1 << 6); /* mode: return */
|
||||
if(s[3 + m] == '?') return 0; /* forget that conditionals exist */
|
||||
else if(s[3 + m] == 'r') i |= (1 << 6); /* mode: return */
|
||||
else return 0; /* failed to match */
|
||||
m++;
|
||||
}
|
||||
return i;
|
||||
|
|
Loading…
Reference in a new issue