diff options
Diffstat (limited to 'src/qml/jsruntime/qv4value_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4value_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4value_p.h b/src/qml/jsruntime/qv4value_p.h index 530c8eaf27..44383689b4 100644 --- a/src/qml/jsruntime/qv4value_p.h +++ b/src/qml/jsruntime/qv4value_p.h @@ -434,9 +434,9 @@ inline int Value::toInt32() const return int_32(); if (Q_LIKELY(isDouble())) - return Double::toInt32(doubleValue()); + return QJSNumberCoercion::toInteger(doubleValue()); - return Double::toInt32(toNumberImpl()); + return QJSNumberCoercion::toInteger(toNumberImpl()); } inline unsigned int Value::toUInt32() const |