mirror of
https://github.com/boostorg/container.git
synced 2025-08-01 13:34:30 +02:00
Make some sanitizers happier avoiding wraparound.
This commit is contained in:
@@ -93,7 +93,8 @@ struct allocator_version_traits<Allocator, 1>
|
||||
{
|
||||
size_type n = holder.size();
|
||||
typename multiallocation_chain::iterator it = holder.begin();
|
||||
while(n--){
|
||||
while(n){
|
||||
--n;
|
||||
pointer p = boost::intrusive::pointer_traits<pointer>::pointer_to(*it);
|
||||
++it;
|
||||
a.deallocate(p, 1);
|
||||
|
Reference in New Issue
Block a user