forked from boostorg/iterator
Merge pull request #28 from Lastique/patch-2
Avoid integer overflow on negating distance in reverse_iterator
This commit is contained in:
commit
b7e7e83a11
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