1.1 --- a/jitcraft/SemanticAnalysis.cpp Sun Jul 01 00:07:40 2012 -0700
1.2 +++ b/jitcraft/SemanticAnalysis.cpp Sun Jul 01 11:25:36 2012 -0700
1.3 @@ -190,15 +190,15 @@
1.4
1.5 // If either side is a float, the other side must be a float or int.
1.6 if (left->isFloat() || right->isFloat()) {
1.7 - assert(left->isFloat() || left->isInt());
1.8 - assert(right->isFloat() || right->isInt());
1.9 + assert(left->isFloat() || left->isInt32());
1.10 + assert(right->isFloat() || right->isInt32());
1.11 node->setType(left->isFloat() ? left : right);
1.12 return;
1.13 }
1.14 }
1.15
1.16 // For now, assert everything else is integer and untagged.
1.17 - assert(left->isInt() && right->isInt());
1.18 + assert(left->isInt32() && right->isInt32());
1.19 assert(!left->tag() && !right->tag());
1.20 node->setType(left);
1.21 }
1.22 @@ -436,7 +436,7 @@
1.23 Type *left = visitForRef(node->left());
1.24 Type *right = visitForLoad(node->right());
1.25
1.26 - if (!right || !right->isInt()) {
1.27 + if (!right || !right->isInt32()) {
1.28 typeError(node->right(), "integer");
1.29 return;
1.30 }