forked from boostorg/iterator
Avoid integer overflow on negating distance
This commit is contained in:
1 parent
af5f6e49e0
commit
c148962bd9
1 file changed
+1
-1
@@ -50,7 +50,7 @@ namespace iterators {
|
||||
|
||||
void advance(typename super_t::difference_type n)
|
||||
{
|
||||
this->base_reference() += -n;
|
||||
this->base_reference() -= n;
|
||||
}
|
||||
|
||||
template <class OtherIterator>
|
||||
|
||||
Reference in new issue
Block a user