mirror of
https://github.com/verilator/verilator.git
synced 2025-01-05 22:27:35 +00:00
Fix 32-bit build of previous commit
This commit is contained in:
parent
fc3ce29845
commit
5df14627fd
@ -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<ValueAndX>) / sizeof(ValueAndX)));
|
||||
static constexpr int INLINE_WORDS = vlstd::max(
|
||||
static_cast<size_t>(2), vlstd::max(sizeof(std::string) / sizeof(ValueAndX),
|
||||
sizeof(std::vector<ValueAndX>) / 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;
|
||||
|
Loading…
Reference in New Issue
Block a user