Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Aug 18, 2021
1 parent ba3e73d commit 7a6f1e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/bitmap/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@ impl MutableBitmap {
if self.length % 8 == 0 {
self.buffer.push(0);
}
if value {
let byte = self.buffer.as_mut_slice().last_mut().unwrap();
*byte = set(*byte, self.length % 8, true);
};
let byte = self.buffer.as_mut_slice().last_mut().unwrap();
*byte = set(*byte, self.length % 8, value);
self.length += 1;
}

Expand Down

0 comments on commit 7a6f1e7

Please sign in to comment.