rid is always unsigned

This commit is contained in:
Devine Lu Linvega 2024-04-27 09:48:10 -07:00
parent a2ea2a6ac2
commit 1fae8de0d5
2 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,3 @@
<> (what is ?x) (is ?x a (programming language))
<> (is ?x a ?y) (or, is ?x (a virtual machine))
<> (or, is ?x ?y) (?x is ?y <> ?y (a meta-language))
@ -6,4 +5,3 @@
<> (?x is ?x) (?(?: ?:) ?x)
what is modal

View File

@ -210,10 +210,10 @@ echo_rule(Rule *r, char *field)
char c, *s = field;
putc('(', stdout);
while((c = *s++)) {
int rid;
unsigned int rid;
putc(c, stdout);
if(c == '?')
c = *s++, rid = c - '0', putc(rid < 8 ? r->reg[rid] : c, stdout);
c = *s++, rid = c - '0', putc(rid < 9 ? r->reg[rid] : c, stdout);
}
putc(')', stdout), putc(' ', stdout);
}