0
0
Fork 0
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:
Andrew Alderwick 2021-03-26 20:16:14 +00:00
parent a5ec692b0a
commit b60fa9d6dd

View file

@ -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;