rid is always unsigned
This commit is contained in:
parent
a2ea2a6ac2
commit
1fae8de0d5
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue