From: Lars Knoll Date: Thu, 1 Nov 2012 15:46:54 +0000 (+0100) Subject: Fix === operator X-Git-Tag: upstream/5.2.1~669^2~659^2~877 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3bcb5a2f6df2c604e857dda321bf17e5f8d4f60;p=platform%2Fupstream%2Fqtdeclarative.git Fix === operator Correctly handle the case where one of the two arguments is a double and the other an integer. Change-Id: I589ac46acc30180b025c7e377c0523cf0889f294 Reviewed-by: Simon Hausmann --- diff --git a/qmljs_runtime.h b/qmljs_runtime.h index 6b31884..1220118 100644 --- a/qmljs_runtime.h +++ b/qmljs_runtime.h @@ -1115,6 +1115,8 @@ inline uint __qmljs_cmp_in(Value left, Value right, Context *ctx) inline Bool __qmljs_strict_equal(Value x, Value y) { + if (x.isDouble() || y.isDouble()) + return x.asDouble() == y.asDouble(); if (x.rawValue() == y.rawValue()) return true; if (x.isString() && y.isString())