aboutsummaryrefslogtreecommitdiffstats
path: root/src/mem_pool.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-01-20 11:27:08 +0000
committerlloyd <[email protected]>2007-01-20 11:27:08 +0000
commit6754c9a9116eebd7a945e57b08b4eaf7612928a8 (patch)
treeb4420652ceac2013f9704d2e31deff5f04db4072 /src/mem_pool.cpp
parent89830b069a44a78cec21174f2f4ec7e6c59d5152 (diff)
parentb42eebf506a41e3431e19471fb8d64e79469fdf5 (diff)
propagate from branch 'net.randombit.botan.stable' (head 0f5f960e749e55bc7b457b944ec168184353c300)
to branch 'net.randombit.botan' (head 260d11a3da24886b3812b396413e6be768160d75)
Diffstat (limited to 'src/mem_pool.cpp')
-rw-r--r--src/mem_pool.cpp3
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));
}
}