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>
This commit is contained in:
Fabian Kosmale 2021-02-10 14:09:07 +01:00
parent 162230208e
commit 934e967507
1 changed files with 2 additions and 0 deletions

View File

@ -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;