Handle Integer_Type in a switch statement
authorLars Knoll <lars.knoll@digia.com>
Fri, 12 Oct 2012 06:48:33 +0000 (08:48 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Fri, 12 Oct 2012 07:18:06 +0000 (09:18 +0200)
Change-Id: I8e00636f0896cec7d18d645dd70db8a100bf5560
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
qmljs_runtime.cpp

index f64ffba..e4295a5 100644 (file)
@@ -1027,6 +1027,8 @@ bool __qmljs_equal(Context *ctx, const Value *x, const Value *y)
         case Value::Boolean_Type:
             return x->booleanValue() == y->booleanValue();
             break;
+        case Value::Integer_Type:
+            return x->integerValue() == y->integerValue();
         case Value::String_Type:
             return __qmljs_string_equal(ctx, x->stringValue(), y->stringValue());
         case Value::Object_Type: