Skip to content
Snippets Groups Projects

Add correct offset for end of chunk

Merged Ansgar Burchardt requested to merge bugfix/poolallocator-debug into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -525,8 +525,8 @@ namespace Dune
#ifndef NDEBUG
Chunk* current=chunks_;
while(current) {
if(static_cast<void*>(&current->chunk_)<=b &&
static_cast<void*>((&current->chunk_)+chunkSize)>b)
if(static_cast<void*>(current->chunk_)<=b &&
static_cast<void*>(current->chunk_+chunkSize)>b)
break;
current=current->next_;
}
Loading