Fix qbswap calls for Big Endian targets
Task-number: QTBUG-71945 Change-Id: I5356f8e32d00ea591b1f65cdd4111276fcf876ac Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Khem Raj <raj.khem@gmail.com>bb10
parent
1075f10184
commit
1fb41a3869
|
|
@ -204,9 +204,9 @@ template <typename T> inline Q_DECL_CONSTEXPR T qToBigEndian(T source)
|
|||
template <typename T> inline Q_DECL_CONSTEXPR T qFromBigEndian(T source)
|
||||
{ return source; }
|
||||
template <typename T> inline Q_DECL_CONSTEXPR T qToLittleEndian(T source)
|
||||
{ return qbswap<T>(source); }
|
||||
{ return qbswap(source); }
|
||||
template <typename T> inline Q_DECL_CONSTEXPR T qFromLittleEndian(T source)
|
||||
{ return qbswap<T>(source); }
|
||||
{ return qbswap(source); }
|
||||
template <typename T> inline void qToBigEndian(T src, void *dest)
|
||||
{ qToUnaligned<T>(src, dest); }
|
||||
template <typename T> inline void qToLittleEndian(T src, void *dest)
|
||||
|
|
|
|||
Loading…
Reference in New Issue