diff options
Diffstat (limited to 'src/declarative/qml/qmlbasicscript.cpp')
-rw-r--r-- | src/declarative/qml/qmlbasicscript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlbasicscript.cpp b/src/declarative/qml/qmlbasicscript.cpp index ebdd348..3d566c7 100644 --- a/src/declarative/qml/qmlbasicscript.cpp +++ b/src/declarative/qml/qmlbasicscript.cpp @@ -494,7 +494,7 @@ const QMetaObject * QmlBasicScriptCompiler::fetch(int type, const QMetaObject *mo, int idx) { ScriptInstruction instr; - (int &)instr.type = type; + *((int*)&instr.type) = type; instr.constant.idx = idx; QMetaProperty prop = mo->property(idx); if (prop.isConstant()) |