761417898 opened a new issue, #115:
URL: https://github.com/apache/tsfile/issues/115

   TEST_F(BitMapTest, Clear) {
       common::BitMap bitmap;
       bitmap.init(100);
       bitmap.set(10);
       bitmap.set(20);
       bitmap.clear(10);
       EXPECT_FALSE(bitmap.test(10)); **// This line cannot execute correctly**
       EXPECT_TRUE(bitmap.test(20));
   }
   
   To correctly clear a bit, the line *start_addr = (*start_addr) ^ 
(~bit_mask); 
   should be corrected to *start_addr = (*start_addr) & ~bit_mask;
   
   Bugfix: https://github.com/apache/tsfile/pull/114


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to