Fixed crash in moc on big endian platforms.

Change-Id: Icaa38eb4b404e5f52248fdeaf9180a5d70d0f5f2
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
Konstantin Tokarev 2012-09-16 22:47:55 +04:00 committed by The Qt Project
parent 855018ac55
commit cb2d87e8b8

View File

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