summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-02-10 14:09:07 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2021-02-10 14:21:25 +0100
commit934e967507d66b44bfde76738ed90f213e6e62ac (patch)
tree915fe3c73db5cd5d9cd6143193c4ae3a755c5224
parent162230208eede3e8db030f0498a70cbf81ca143a (diff)
Restore String size assert
Just like all of the other datastructures in qv4compileddata, changing the size of String would require an inrcement of QV4_DATA_STRUCTURE_VERSION. Change-Id: I462d04204255946d309d245bc20b044ba9d222d7 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r--src/qml/common/qv4compileddata_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/common/qv4compileddata_p.h b/src/qml/common/qv4compileddata_p.h
index 76ed48913a..891541b8f4 100644
--- a/src/qml/common/qv4compileddata_p.h
+++ b/src/qml/common/qv4compileddata_p.h
@@ -227,6 +227,8 @@ struct String
}
};
+static_assert (sizeof (String) == 4, "String structure needs to have the expected size to be binary compatible on disk when generated by host compiler and loaded by target");
+
struct CodeOffsetToLine {
quint32_le codeOffset;
quint32_le line;