diff options
-rw-r--r-- | src/mem_pool.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mem_pool.cpp b/src/mem_pool.cpp index 35f6d07e7..8da63e0e1 100644 --- a/src/mem_pool.cpp +++ b/src/mem_pool.cpp @@ -10,8 +10,6 @@ #include <botan/util.h> #include <algorithm> -#include <assert.h> - namespace Botan { namespace { @@ -272,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)); } } |