diff options
Diffstat (limited to 'src/qml/common/qv4staticvalue_p.h')
-rw-r--r-- | src/qml/common/qv4staticvalue_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/common/qv4staticvalue_p.h b/src/qml/common/qv4staticvalue_p.h index e9c3554104..9a88fccc04 100644 --- a/src/qml/common/qv4staticvalue_p.h +++ b/src/qml/common/qv4staticvalue_p.h @@ -393,7 +393,7 @@ struct StaticValue } QV4_NEARLY_ALWAYS_INLINE static bool isInt32(double d) { - int i = int(d); + int i = QJSNumberCoercion::toInteger(d); return (i == d && !(d == 0 && std::signbit(d))); } |