Browse Source

another return fix in minic

Quentin Carbonneaux 10 years ago
parent
commit
5e0c991af9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      minic/minic.y

+ 1 - 1
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;