commit 04ed7f56aad27062a38a70936ec760ec99c99089
parent d1c348bf151500cadf5b694fa80f085f5555bc9e
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Fri, 2 Oct 2015 15:46:24 -0400
minor bug in case While
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/minic/minic.y b/minic/minic.y
@@ -386,10 +386,10 @@ Again:
}
break;
case While:
- x = expr(s->p1);
l = lbl;
lbl += 3;
fprintf(of, "@l%d\n", l);
+ x = expr(s->p1);
fprintf(of, "\tjnz "); /* ditto */
psymb(x);
fprintf(of, ", @l%d, @l%d\n", l+1, l+2);