diff --git a/src/mem/cache/compressors/dictionary_compressor.hh b/src/mem/cache/compressors/dictionary_compressor.hh index fce79d5e81..650edab5a0 100644 --- a/src/mem/cache/compressors/dictionary_compressor.hh +++ b/src/mem/cache/compressors/dictionary_compressor.hh @@ -464,7 +464,7 @@ class DictionaryCompressor::MaskedPattern const DictionaryEntry bytes, const bool allocate = true) : DictionaryCompressor::Pattern(number, code, metadata_length, - popCount(~mask), match_location, allocate), + popCount(static_cast(~mask)), match_location, allocate), bits(DictionaryCompressor::fromDictionaryEntry(bytes) & ~mask) { }