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>
This commit is contained in:
Lars Knoll 2020-09-02 08:47:43 +02:00
parent 927647cd03
commit 26b38510ce

View File

@ -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)