From 87eec0958c86f8e466501ef9ac5f8ccdb2400211 Mon Sep 17 00:00:00 2001 From: Anatoliy Kuznetsov Date: Tue, 3 Sep 2024 15:29:08 -0400 Subject: [PATCH] [PATCH] fixed clang compilation issues Gbp-Pq: Name fix_bm_for_gcc15 --- c++/include/util/bitset/bm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c++/include/util/bitset/bm.h b/c++/include/util/bitset/bm.h index 547b1085..0c59785f 100644 --- a/c++/include/util/bitset/bm.h +++ b/c++/include/util/bitset/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_; -- 2.30.2