mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 20:32:34 +00:00
bitmatrix parse should use chars and not len
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user