You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tsfile.apache.org by ji...@apache.org on 2024/06/18 03:23:51 UTC
(tsfile) branch develop updated: bugfix: bitmap clear method (#114)
This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/tsfile.git
The following commit(s) were added to refs/heads/develop by this push:
new b1492023 bugfix: bitmap clear method (#114)
b1492023 is described below
commit b1492023aef51be795d37cef4e77678579d8735f
Author: Hongzhi Gao <76...@qq.com>
AuthorDate: Tue Jun 18 11:23:47 2024 +0800
bugfix: bitmap clear method (#114)
Co-authored-by: hongzhigao <ho...@foxmail.com>
---
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) {