diff --git a/src/V3Number.h b/src/V3Number.h index 1dbec5d36..f149c6ae6 100644 --- a/src/V3Number.h +++ b/src/V3Number.h @@ -77,9 +77,9 @@ private: // CONSTANTS // At least 2 words (64 fourstate bits). 4 words (128 fourstate bits) in most cases, // i.e. when std::string has 32 bytes. - static constexpr int INLINE_WORDS - = vlstd::max(2UL, vlstd::max(sizeof(std::string) / sizeof(ValueAndX), - sizeof(std::vector) / sizeof(ValueAndX))); + static constexpr int INLINE_WORDS = vlstd::max( + static_cast(2), vlstd::max(sizeof(std::string) / sizeof(ValueAndX), + sizeof(std::vector) / sizeof(ValueAndX))); // When m_width > MAX_INLINE_WIDTH number is stored in m_dynamicNumber. // Otherwise number is stored in m_inlineNumber. static constexpr int MAX_INLINE_WIDTH = INLINE_WORDS * sizeof(ValueAndX) / 2 * 8;