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 <[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) {