bitmatrix parse should use chars and not len

This commit is contained in:
Henry Schimke
2023-01-09 17:43:08 -06:00
parent 8a8534ede3
commit 7fe24575f1

View File

@@ -126,7 +126,7 @@ impl BitMatrix {
// throw new IllegalArgumentException();
// }
let mut bits = vec![false; string_representation.len()];
let mut bits = vec![false; string_representation.chars().count()];
let mut bitsPos = 0;
let mut rowStartPos = 0;
let mut rowLength = 0; //-1;