diff --git a/src/Collections/List.hpp b/src/Collections/List.hpp index d20ee37..4aefcdc 100644 --- a/src/Collections/List.hpp +++ b/src/Collections/List.hpp @@ -36,7 +36,7 @@ namespace ArbUt { inline const const_reference& At(size_t index) const { #ifndef NO_ASSERT - if (index >= _vector.size() || index < 0) { + if (index >= _vector.size()) { std::stringstream ss; ss << "Index " << index << " is out of bounds."; throw ArbUt::Exception(ss.str()); @@ -47,7 +47,7 @@ namespace ArbUt { inline const const_reference& Set(size_t index, const ValueT& value) { #ifndef NO_ASSERT - if (index >= _vector.size() || index < 0) { + if (index >= _vector.size()) { std::stringstream ss; ss << "Index " << index << " is out of bounds."; throw ArbUt::Exception(ss.str());