little thing

This commit is contained in:
2025-05-29 10:49:41 -04:00
parent d135cdafcb
commit b734760dd3
+1 -1
View File
@@ -206,7 +206,7 @@ fn decode(bars: [65]BarType) Error!BarcodeResult {
for (&characters, 0..) |*character, i| { for (&characters, 0..) |*character, i| {
switch (bitsSet(u13, character.*)) { switch (bitsSet(u13, character.*)) {
8, 11 => { 8, 11 => {
character.* ^= 0b1111111111111; character.* = ~character.*;
checksum |= (@as(u11, 1) << @intCast(i)); checksum |= (@as(u11, 1) << @intCast(i));
}, },
2, 5 => {}, 2, 5 => {},