fix unpacking of geometry for shared memory

This commit is contained in:
Dennis Luxen 2014-04-22 16:10:10 +02:00
parent 09dc21af31
commit d0e158ca07

View File

@ -165,7 +165,7 @@ public:
// } // }
bool at(const std::size_t index) const { bool at(const std::size_t index) const {
BOOST_ASSERT_MSG(index < m_size, "invalid size"); // BOOST_ASSERT_MSG(index < m_size, "invalid size");
const unsigned bucket = index / 32; const unsigned bucket = index / 32;
const unsigned offset = index % 32; const unsigned offset = index % 32;
return m_ptr[bucket] & (1 << offset); return m_ptr[bucket] & (1 << offset);