Warning fix.
This commit is contained in:
parent
42da727a67
commit
2b2d0a3219
1 changed files with 2 additions and 1 deletions
|
@ -44,7 +44,8 @@ namespace dk {
|
||||||
T& TileIterator<T, D, T1>::dereference() const {
|
T& TileIterator<T, D, T1>::dereference() const {
|
||||||
const auto index = to_index(m_tile_range);
|
const auto index = to_index(m_tile_range);
|
||||||
DK_ASSERT(m_data);
|
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];
|
return (*m_data)[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue