diff options
Diffstat (limited to 'src/qml/jsruntime/qv4typedarray.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4typedarray.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4typedarray.cpp b/src/qml/jsruntime/qv4typedarray.cpp index f425c6c87f..c816465d76 100644 --- a/src/qml/jsruntime/qv4typedarray.cpp +++ b/src/qml/jsruntime/qv4typedarray.cpp @@ -63,7 +63,7 @@ static inline int toInt32(Value v) Q_ASSERT(v.isNumber()); if (v.isInteger()) return v.integerValue(); - return Double::toInt32(v.doubleValue()); + return QJSNumberCoercion::toInteger(v.doubleValue()); } static inline double toDouble(Value v) |