Fix deserialising uint64_t on 32bit ARM device.

This commit is contained in:
Michael Rennie
2016-08-31 18:06:04 +01:00
parent 8a5efd8c8d
commit 0ab8627353
+5
View File
@@ -592,7 +592,12 @@ private:
}
char *data = (char *)ReadBytes(sizeof(T));
#if defined(_M_ARM) || defined(__arm__)
// Fetches on ARM have to be aligned according to the type size.
memcpy(&f, data, sizeof(T));
#else
f = *((T *)data);
#endif
}
// no copies