aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-12-20 20:55:36 +0000
committerlloyd <[email protected]>2006-12-20 20:55:36 +0000
commitb42eebf506a41e3431e19471fb8d64e79469fdf5 (patch)
tree0bd67f4aa5804ad80dbaad3b263ebb3e1d43e0cf /src
parenta9681ec4dc3e25a6cbd90341f6f3debe7763bd54 (diff)
Remove an include of assert.h
When searching for last used, put the pointer into a Memory_Block first. That avoids a bug in Visual Studio.
Diffstat (limited to 'src')
-rw-r--r--src/mem_pool.cpp5
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));
}
}