aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4instr_moth_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2018-07-17 12:39:11 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2018-07-17 12:39:11 +0200
commite137877eaaa3975a6769fd2dd574bd75876fcfa5 (patch)
treea397bdb1389ea02e6fb7b083e3e149b8a0de50cf /src/qml/compiler/qv4instr_moth_p.h
parent6b53e7e16df0a2451d2b7948ad35485301c564b6 (diff)
parent369998639b37b5de46ab1b19b3dd6ca6c2b77d34 (diff)
Merge remote-tracking branch 'origin/5.11' into dev
Conflicts: examples/quick/demos/photoviewer/i18n/qml_de.ts examples/quick/demos/photoviewer/i18n/qml_fr.ts examples/quick/demos/photoviewer/photoviewer.pro examples/quick/demos/photoviewer/qml.qrc src/qml/compiler/qv4instr_moth_p.h tests/auto/quick/qquickanimations/tst_qquickanimations.cpp Change-Id: Ibea76b468577c2a68bd305cee82ae6444d0f8073
Diffstat (limited to 'src/qml/compiler/qv4instr_moth_p.h')
-rw-r--r--src/qml/compiler/qv4instr_moth_p.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qml/compiler/qv4instr_moth_p.h b/src/qml/compiler/qv4instr_moth_p.h
index 4e2dd370c4..ce92a31590 100644
--- a/src/qml/compiler/qv4instr_moth_p.h
+++ b/src/qml/compiler/qv4instr_moth_p.h
@@ -383,9 +383,7 @@ QT_BEGIN_NAMESPACE
nargs, nargs,
#define MOTH_DECODE_ARG(arg, type, nargs, offset) \
- arg = qFromLittleEndian<type>( \
- static_cast<const void *>( \
- &reinterpret_cast<const type *>(code)[-nargs + offset]));
+ arg = qFromLittleEndian<type>(qFromUnaligned<type>(reinterpret_cast<const type *>(code) - nargs + offset));
#define MOTH_ADJUST_CODE(type, nargs) \
code += static_cast<quintptr>(nargs*sizeof(type) + 1)