1.1 --- a/jitcraft/SemanticAnalysis.cpp Mon Jul 02 14:04:29 2012 -0700
1.2 +++ b/jitcraft/SemanticAnalysis.cpp Mon Jul 02 23:37:12 2012 -0700
1.3 @@ -20,6 +20,7 @@
1.4 #include "Zone.h"
1.5 #include "TypeManager.h"
1.6 #include "Scopes.h"
1.7 +#include "Heap-inl.h"
1.8
1.9 using namespace jc;
1.10
1.11 @@ -47,9 +48,10 @@
1.12 case TOK_SHL:
1.13 *out = BoxedPrimitive::Int(left.toInt() << right.toInt());
1.14 return true;
1.15 +
1.16 + default:
1.17 + return false;
1.18 }
1.19 -
1.20 - return true;
1.21 }
1.22
1.23 static bool
1.24 @@ -199,7 +201,7 @@
1.25 Type *floatType = left->isFloat() ? left : right;
1.26 Type *other = left->isFloat() ? right : left;
1.27 if (other->isFloat() || (other->isInt32() && !other->tag()))
1.28 - return other;
1.29 + return floatType;
1.30 }
1.31 }
1.32