code_39 passes

This commit is contained in:
Henry Schimke
2022-12-07 11:02:59 -06:00
parent 2a32984d8d
commit 1ff65fbcbe
2 changed files with 4 additions and 2 deletions

View File

@@ -228,8 +228,8 @@ impl Code39Reader {
// return new int[]{patternStart, i};
}
patternStart += (counters[0] + counters[1]) as usize;
let slc = counters[0..(counterPosition - 1)].to_vec();
counters[2..(counterPosition - 1 + 2)].clone_from_slice(&slc[..]);
let slc = counters[2..(counterPosition - 1 + 2)].to_vec();
counters[0..(counterPosition - 1)].clone_from_slice(&slc[..]);
// System.arraycopy(counters, 2, counters, 0, counterPosition - 1);
counters[counterPosition - 1] = 0;
counters[counterPosition] = 0;