aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4compiler_p.h
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2018-09-07 12:47:06 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2018-09-14 14:57:37 +0000
commit6ed9a0817a5ab30e8f32aed0ecfa9c6c47071551 (patch)
treee34f8448b76a1e1550629630496202b2048f78f5 /src/qml/compiler/qv4compiler_p.h
parent940c06a4645cca190055a3987db8147b4e2de02c (diff)
properly align string table in compiled data
Change-Id: Ie6534d5443ad046211620c4e0b586d189d0adbef Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compiler_p.h')
-rw-r--r--src/qml/compiler/qv4compiler_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4compiler_p.h b/src/qml/compiler/qv4compiler_p.h
index a7520c0117..c4c886ffad 100644
--- a/src/qml/compiler/qv4compiler_p.h
+++ b/src/qml/compiler/qv4compiler_p.h
@@ -82,7 +82,7 @@ struct Q_QML_PRIVATE_EXPORT StringTableGenerator {
QString stringForIndex(int index) const { return strings.at(index); }
uint stringCount() const { return strings.size() - backingUnitTableSize; }
- uint sizeOfTableAndData() const { return stringDataSize + stringCount() * sizeof(uint); }
+ uint sizeOfTableAndData() const { return stringDataSize + ((stringCount() * sizeof(uint) + 7) & ~7); }
void freeze() { frozen = true; }