diff --git a/include/boost/range/iterator_range_core.hpp b/include/boost/range/iterator_range_core.hpp index cefabd4..08e5b73 100644 --- a/include/boost/range/iterator_range_core.hpp +++ b/include/boost/range/iterator_range_core.hpp @@ -336,7 +336,7 @@ protected: public: reference operator[](difference_type at) const { - BOOST_ASSERT(at >= 0 && at < size()); + BOOST_ASSERT(at >= 0 && ((size_type)at) < size()); return this->m_Begin[at]; } @@ -347,7 +347,7 @@ public: // abstract_value_type operator()(difference_type at) const { - BOOST_ASSERT(at >= 0 && at < size()); + BOOST_ASSERT(at >= 0 && ((size_type)at) < size()); return this->m_Begin[at]; }