diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mem_pool.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mem_pool.cpp b/src/mem_pool.cpp index cf64fc9af..67da88a14 100644 --- a/src/mem_pool.cpp +++ b/src/mem_pool.cpp @@ -270,7 +270,8 @@ void Pooling_Allocator::get_more_core(u32bit in_bytes) } std::sort(blocks.begin(), blocks.end()); - last_used = std::lower_bound(blocks.begin(), blocks.end(), ptr); + last_used = std::lower_bound(blocks.begin(), blocks.end(), + Memory_Block(ptr)); } } |