File: fix_bm_for_gcc15.patch

package info (click to toggle)
sra-sdk 3.2.1%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 296,128 kB
  • sloc: ansic: 532,876; cpp: 243,000; perl: 9,649; python: 8,978; sh: 7,888; java: 6,253; makefile: 1,148; yacc: 703; xml: 310; lex: 236
file content (31 lines) | stat: -rw-r--r-- 1,157 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From fab01f43eca266bf56efb1aca659773c911a83fb Mon Sep 17 00:00:00 2001
From: Anatoliy Kuznetsov <anatoliy.kuznetsov@gmail.com>
Date: Tue, 3 Sep 2024 15:29:08 -0400
Subject: [PATCH] fixed clang compilation issues

---
 libs/inc/bm/bm.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libs/inc/bm/bm.h b/libs/inc/bm/bm.h
index 70996e53..05bb139c 100644
--- a/libs/inc/bm/bm.h
+++ b/libs/inc/bm/bm.h
@@ -523,7 +523,7 @@ class bvector
         {
             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 @@ class bvector
         {
             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_;