diff --git a/src/corelib/tools/qcryptographichash.cpp b/src/corelib/tools/qcryptographichash.cpp index 1c122d5620f..f6b7aee4553 100644 --- a/src/corelib/tools/qcryptographichash.cpp +++ b/src/corelib/tools/qcryptographichash.cpp @@ -128,7 +128,7 @@ template class QSmallByteArray { std::array m_data; - static_assert(N <= std::numeric_limits::max()); + static_assert(N <= (std::numeric_limits::max)()); quint8 m_size = 0; public: QSmallByteArray() = default;