mirror of
https://github.com/boostorg/iterator.git
synced 2026-02-03 21:55:06 +01:00
Avoid integer overflow on negating distance
This commit is contained in:
@@ -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