diff options
Diffstat (limited to 'src/corelib/tools')
-rw-r--r-- | src/corelib/tools/qtools_p.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/corelib/tools/qtools_p.h b/src/corelib/tools/qtools_p.h index a86a55646d..5b6be12820 100644 --- a/src/corelib/tools/qtools_p.h +++ b/src/corelib/tools/qtools_p.h @@ -87,9 +87,7 @@ constexpr inline int fromOct(uint c) noexcept } // We typically need an extra bit for qNextPowerOfTwo when determining the next allocation size. -enum { - MaxAllocSize = (std::numeric_limits<int>::max)() -}; +constexpr qsizetype MaxAllocSize = (std::numeric_limits<qsizetype>::max)(); struct CalculateGrowingBlockSizeResult { qsizetype size; |