mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
v0.1.4
This commit is contained in:
@@ -196,11 +196,12 @@ impl BitArray {
|
||||
* Clears all bits (sets to false).
|
||||
*/
|
||||
pub fn clear(&mut self) {
|
||||
let max = self.bits.len();
|
||||
for i in 0..max {
|
||||
//for (int i = 0; i < max; i++) {
|
||||
self.bits[i] = 0;
|
||||
}
|
||||
// let max = self.bits.len();
|
||||
// for i in 0..max {
|
||||
// //for (int i = 0; i < max; i++) {
|
||||
// self.bits[i] = 0;
|
||||
// }
|
||||
self.bits.fill(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user