summary refs log tree commit diff
path: root/minic/minic.y
diff options
context:
space:
mode:
Diffstat (limited to 'minic/minic.y')
-rw-r--r--minic/minic.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/minic/minic.y b/minic/minic.y
index c2af7f6..6c9d69d 100644
--- a/minic/minic.y
+++ b/minic/minic.y
@@ -535,7 +535,7 @@ stmt(Stmt *s, int b)
 		if (s->p3)
 		if (!(r &= stmt(s->p3, b)))
 			fprintf(of, "@l%d\n", l+2);
-		return r;
+		return s->p3 && r;
 	case While:
 		l = lbl;
 		lbl += 3;