aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4runtime.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-01-16 12:44:51 +0100
committerLars Knoll <lars.knoll@digia.com>2015-01-23 12:30:41 +0100
commit0c2ab6e20ca23e74055d0a95539315cf1bf360bf (patch)
treeb36a65f2f32c87c7c11661e82d3a881211a79207 /src/qml/jsruntime/qv4runtime.cpp
parentef6b4938b9ec309d5faf0c966cb2b58f3de2ca77 (diff)
Store a double in NumberObject
Makes more sense than storing a Value in there. Change-Id: I2e6ca71477100c1e1639bb89cced4f4049b5e5c2 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4runtime.cpp')
-rw-r--r--src/qml/jsruntime/qv4runtime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4runtime.cpp b/src/qml/jsruntime/qv4runtime.cpp
index 4167823c6b..28f2a59307 100644
--- a/src/qml/jsruntime/qv4runtime.cpp
+++ b/src/qml/jsruntime/qv4runtime.cpp
@@ -441,7 +441,7 @@ Heap::Object *RuntimeHelpers::convertToObject(ExecutionEngine *engine, const Val
return engine->newStringObject(value);
case Value::Integer_Type:
default: // double
- return engine->newNumberObject(value);
+ return engine->newNumberObject(value.asDouble());
}
}