ref: 9e40c0c4f8f15b13a2a39bab393f5a921ec83275
parent: 2fc8ee279b55d1da274fc17ef6ab73efcdd1c206
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Apr 15 07:17:56 EDT 2014
Fix compare() There were some switch cases where break was missed.
--- a/expr.c
+++ b/expr.c
@@ -184,6 +184,7 @@
default:
goto incompatibles;
}
+ break;
case FLOAT:
switch (t2) {
case INT:
@@ -196,13 +197,14 @@
defualt:
goto incompatibles;
}
+ break;
case ARY: case FTN:
np1 = addr2ptr(np1);
tp1 = UNQUAL(np1->type);
- break;
case PTR:
if (tp1 != tp2)
goto incompatibles;
+ break;
default:
goto incompatibles;
}