This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git

commit bcc53a135ff43782aef6ce0f3ff42d07917a6400
Author: Hongzhi Gao <[email protected]>
AuthorDate: Tue Jun 18 11:23:47 2024 +0800

    bugfix: bitmap clear method (#114)
    
    Co-authored-by: hongzhigao <[email protected]>
---
 cpp/src/common/container/bit_map.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpp/src/common/container/bit_map.h 
b/cpp/src/common/container/bit_map.h
index 371f29cd..9d036744 100644
--- a/cpp/src/common/container/bit_map.h
+++ b/cpp/src/common/container/bit_map.h
@@ -52,7 +52,7 @@ class BitMap {
 
         char *start_addr = bitmap_ + offset;
         uint8_t bit_mask = get_bit_mask(index);
-        *start_addr = (*start_addr) ^ (~bit_mask);
+        *start_addr = (*start_addr) & (~bit_mask);
     }
 
     FORCE_INLINE bool test(uint32_t index) {

Reply via email to