summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-05-22 03:05:11 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-05-22 03:05:11 (GMT)
commit2575eac4c26ad92dde95959a82f576edc3e76e1d (patch)
tree90166b4b59c991b1f97ad822976a8c9287aaf5f3 /src/declarative
parentd62ebb5cc452c894afde0da4ba4dd3bc2456ceb9 (diff)
downloadQt-2575eac4c26ad92dde95959a82f576edc3e76e1d.zip
Qt-2575eac4c26ad92dde95959a82f576edc3e76e1d.tar.gz
Qt-2575eac4c26ad92dde95959a82f576edc3e76e1d.tar.bz2
Naively fix handling of qreal properties for ARM.
This gets things working, but isn't ideal as it treats qreal properties as type double on ARM (where they should be of type float).
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/qml/qmlvme.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlvme.cpp b/src/declarative/qml/qmlvme.cpp
index 1552cb5..a5cc649 100644
--- a/src/declarative/qml/qmlvme.cpp
+++ b/src/declarative/qml/qmlvme.cpp
@@ -1017,7 +1017,8 @@ void QmlVME::runStoreInstruction(QStack<QObject *> &stack,
QFxCompilerTimer<QFxCompiler::InstrStoreReal> cc;
#endif
QObject *target = stack.top();
- qreal r = instr.storeReal.value;
+ //### moc treats qreal properties as having type double
+ double r = static_cast<double>(instr.storeReal.value);
void *a[1];
a[0] = &r;
QMetaObject::metacall(target, QMetaObject::WriteProperty,