QIntegerForSize: fix check for 128-bit ints
We do not need the Q_CC_GNU check, as the __SIZEOF_INT128__ check is enough. Change-Id: I12bdd02186c4f5dad0ab3f4596f4b37e5c3f7eee Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 27b06e50e0c864ee50f9bab8eeb97ac038d0306a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
7050aec00b
commit
799bdf5c53
@ -107,7 +107,7 @@ template <> struct QIntegerForSize<1> { typedef quint8 Unsigned; typedef qin
|
||||
template <> struct QIntegerForSize<2> { typedef quint16 Unsigned; typedef qint16 Signed; };
|
||||
template <> struct QIntegerForSize<4> { typedef quint32 Unsigned; typedef qint32 Signed; };
|
||||
template <> struct QIntegerForSize<8> { typedef quint64 Unsigned; typedef qint64 Signed; };
|
||||
#if defined(Q_CC_GNU) && defined(__SIZEOF_INT128__)
|
||||
#if defined(__SIZEOF_INT128__)
|
||||
template <> struct QIntegerForSize<16> { typedef quint128 Unsigned; typedef qint128 Signed; };
|
||||
#endif
|
||||
template <class T> struct QIntegerForSizeof: QIntegerForSize<sizeof(T)> { };
|
||||
|
Loading…
x
Reference in New Issue
Block a user