diff --git a/src/mem/ruby/common/Set.hh b/src/mem/ruby/common/Set.hh index 5481c2ec7c..b76c3409dc 100644 --- a/src/mem/ruby/common/Set.hh +++ b/src/mem/ruby/common/Set.hh @@ -54,7 +54,7 @@ class Set long *m_p_nArray; // an word array to hold the bits in the set long m_p_nArray_Static[NUMBER_WORDS_PER_SET]; - static const int LONG_BITS = std::numeric_limits::digits; + static const int LONG_BITS = std::numeric_limits::digits + 1; static const int INDEX_SHIFT = LONG_BITS == 64 ? 6 : 5; static const int INDEX_MASK = (1 << INDEX_SHIFT) - 1;