diff options
Diffstat (limited to 'endianhelpers.h')
-rw-r--r-- | endianhelpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/endianhelpers.h b/endianhelpers.h index f11c669..3060382 100644 --- a/endianhelpers.h +++ b/endianhelpers.h @@ -10,7 +10,7 @@ template<typename T> inline T read(const QByteArray &data, int &offset) { T unswapped; - qMemCopy(&unswapped, &data.constData()[offset], sizeof(T)); // Unaligned access warning! + memcpy(&unswapped, &data.constData()[offset], sizeof(T)); // Unaligned access warning! offset += sizeof(T); return qFromBigEndian<T>(unswapped); } |