mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 06:59:07 +08:00
23 lines
817 B
Diff
23 lines
817 B
Diff
diff --git a/src/bm.h b/src/bm.h
|
|
index 547b108..0c59785 100644
|
|
--- a/src/bm.h
|
|
+++ b/src/bm.h
|
|
@@ -523,7 +523,7 @@ public:
|
|
{
|
|
bvect_ = ii.bvect_;
|
|
if (!buf_)
|
|
- buf_ = bvect_->allocate_tempblock();
|
|
+ buf_ = (value_type*) bvect_->blockman_.get_allocator().alloc_bit_block();
|
|
buf_size_ = ii.buf_size_;
|
|
::memcpy(buf_, ii.buf_, buf_size_ * sizeof(*buf_));
|
|
sorted_ = ii.sorted_;
|
|
@@ -534,7 +534,7 @@ public:
|
|
{
|
|
bvect_ = ii.bvect_;
|
|
if (buf_)
|
|
- bvect_->free_tempblock(buf_);
|
|
+ bvect_->blockman_.get_allocator().free_bit_block((bm::word_t*)buf_);
|
|
buf_ = ii.buf_; ii.buf_ = 0;
|
|
buf_size_ = ii.buf_size_;
|
|
sorted_ = ii.sorted_;
|