From 5df14627fdb57c29ce8fc5084c1dad61f4c69cc0 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 20 Sep 2022 18:23:44 -0400 Subject: [PATCH] Fix 32-bit build of previous commit --- src/V3Number.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;