summary refs log tree commit diff
path: root/minic/minic.y
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-08 10:32:02 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-08 10:36:42 -0500
commit5e0c991af9052f74dfa7e31864d4b9914977ba8c (patch)
tree951ee6f1500c55b8f49eca4d884d8dd1ce713143 /minic/minic.y
parent1f2261b5a3d4be901ef3f3bb43f2c7456c408427 (diff)
downloadroux-5e0c991af9052f74dfa7e31864d4b9914977ba8c.tar.gz
another return fix in minic
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;