Fixed crash in moc on big endian platforms.
Change-Id: Icaa38eb4b404e5f52248fdeaf9180a5d70d0f5f2 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
855018ac55
commit
cb2d87e8b8
@ -407,7 +407,7 @@ bool Parser::parseObject()
|
||||
memcpy(data + table, parsedObject.offsets.constData(), tableSize);
|
||||
#else
|
||||
offset *o = (offset *)(data + table);
|
||||
for (int i = 0; i < tableSize; ++i)
|
||||
for (int i = 0; i < parsedObject.offsets.size(); ++i)
|
||||
o[i] = parsedObject.offsets[i];
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user