diff --git a/DataStructures/SharedMemoryVectorWrapper.h b/DataStructures/SharedMemoryVectorWrapper.h index e54c71ff4..fe4baf338 100644 --- a/DataStructures/SharedMemoryVectorWrapper.h +++ b/DataStructures/SharedMemoryVectorWrapper.h @@ -128,8 +128,8 @@ template <> class SharedMemoryWrapper bool at(const std::size_t index) const { - const unsigned bucket = index / 32; - const unsigned offset = index % 32; + const std::size_t bucket = index / 32; + const unsigned offset = static_cast(index % 32); return m_ptr[bucket] & (1 << offset); }