summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorVille Voutilainen <ville.voutilainen@qt.io>2019-01-04 09:35:40 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2019-01-05 09:22:13 +0000
commit1fb41a38692a4f675a9a336d92d806e12eeb0de9 (patch)
treedc5113044e04d431a8b64c19c3d4b54661cf50a4 /src/corelib
parent1075f10184e52ecb08e9b91ae8da25d12f17a9ef (diff)
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>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/global/qendian.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/global/qendian.h b/src/corelib/global/qendian.h
index f2e5833468..615f523888 100644
--- a/src/corelib/global/qendian.h
+++ b/src/corelib/global/qendian.h
@@ -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)