From 0fc8e04ab51150ac15aaa56078718bbca6666abc Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Tue, 17 Jun 2014 15:30:28 +0200 Subject: [PATCH] use proper data types to avoid uncessary casts --- DataStructures/SharedMemoryVectorWrapper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }