diff --git a/src/corelib/tools/qversionnumber.h b/src/corelib/tools/qversionnumber.h index f4e3cb2739..4704db2c10 100644 --- a/src/corelib/tools/qversionnumber.h +++ b/src/corelib/tools/qversionnumber.h @@ -387,7 +387,7 @@ public: } private: - enum { SegmentUnknown = static_cast(~0U) }; + enum { SegmentUnknown = 0xff }; #if Q_BYTE_ORDER == Q_LITTLE_ENDIAN constexpr QTypeRevision(quint8 major, quint8 minor)