From c687e28e5a1bab7e2ce3595db1bac103f05d0875 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 23 Apr 2007 03:13:07 +0000 Subject: Revert the last change; it actually broke the memory allocators in a fairly massive way. --- src/mem_pool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem_pool.cpp b/src/mem_pool.cpp index 0b5687481..67da88a14 100644 --- a/src/mem_pool.cpp +++ b/src/mem_pool.cpp @@ -207,7 +207,7 @@ void Pooling_Allocator::deallocate(void* ptr, u32bit n) const u32bit block_no = round_up(n, BLOCK_SIZE) / BLOCK_SIZE; std::vector::iterator i = - std::lower_bound(blocks.begin(), blocks.end(), Memory_Block(ptr)); + std::lower_bound(blocks.begin(), blocks.end(), ptr); if(i == blocks.end() || !i->contains(ptr, block_no)) throw Invalid_State("Pointer released to the wrong allocator"); -- cgit v1.2.3