This commit is contained in:
2025-06-04 12:52:49 -04:00
parent ca60281d7c
commit 6dfcef9225
2 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -103,7 +103,7 @@ fn generateCharacterTable(n: u8, comptime len: usize) [len]u13 {
}
const character_table_5 = generateCharacterTable(5, 1287);
const character_table_2 = generateCharacterTable(2, 77);
const character_table_2 = generateCharacterTable(2, 78);
const BarType = enum {
descending,
@@ -235,7 +235,7 @@ fn tryDecode(bars: [65]BarType) Error!BarcodeResult {
else => return error.DecodingError,
}
character.* = findCodeword(character.*).?;
character.* = findCodeword(character.*) orelse return error.DecodingError;
}
characters[9] /= 2;
BIN
View File
Binary file not shown.