diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-09-02 08:47:43 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-09-02 22:44:29 +0200 |
commit | 26b38510ce5a04ba564c3c281f7587d2fa034d4e (patch) | |
tree | 73583ed99bea31c80adf5e63b61a5317a1347529 /src | |
parent | 927647cd032cd2e43bae3184b879586849ffee50 (diff) |
Fix an annoying compiler warning on MSVC
Fix a warning about truncating a const through a static_cast
on MSVC.
Change-Id: I381ce806d602c006ef6f14eb4fc89716bc5403ae
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/tools/qversionnumber.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<quint8>(~0U) }; + enum { SegmentUnknown = 0xff }; #if Q_BYTE_ORDER == Q_LITTLE_ENDIAN constexpr QTypeRevision(quint8 major, quint8 minor) |