use proper data types to avoid uncessary casts

This commit is contained in:
Dennis Luxen 2014-06-17 15:30:28 +02:00
parent a65e2d3115
commit 0fc8e04ab5

View File

@ -128,8 +128,8 @@ template <> class SharedMemoryWrapper<bool>
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<unsigned>(index % 32);
return m_ptr[bucket] & (1 << offset);
}