diff --git a/examples/postcard.modal b/examples/postcard.modal index 478b784..ffa521d 100644 --- a/examples/postcard.modal +++ b/examples/postcard.modal @@ -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 - diff --git a/src/modal.c b/src/modal.c index c7bc1a4..1cb3d72 100644 --- a/src/modal.c +++ b/src/modal.c @@ -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); }