Warning fix.

This commit is contained in:
Michele Santullo 2015-08-17 10:45:20 +02:00
parent 42da727a67
commit 2b2d0a3219
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ namespace dk {
T& TileIterator<T, D, T1>::dereference() const {
const auto index = to_index(m_tile_range);
DK_ASSERT(m_data);
DK_ASSERT(index < m_data->size());
DK_ASSERT(index >= 0);
DK_ASSERT(static_cast<typename std::make_unsigned<decltype(index)>::type>(index) < m_data->size());
return (*m_data)[index];
}