aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4compiler_p.h
diff options
context:
space:
mode:
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; }