From 2b2d0a321980b3cefea8b9473024340b43811c68 Mon Sep 17 00:00:00 2001 From: Michele Santullo Date: Mon, 17 Aug 2015 10:45:20 +0200 Subject: [PATCH] Warning fix. --- include/doorkeeper/implem/tileiterator.inl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/doorkeeper/implem/tileiterator.inl b/include/doorkeeper/implem/tileiterator.inl index 92c5e67..c242040 100644 --- a/include/doorkeeper/implem/tileiterator.inl +++ b/include/doorkeeper/implem/tileiterator.inl @@ -44,7 +44,8 @@ namespace dk { T& TileIterator::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::type>(index) < m_data->size()); return (*m_data)[index]; }