mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Remove redundant numeric mode check in last digit processing
This commit is contained in:
parent
1dd4b08986
commit
c87c86e30a
@ -1426,7 +1426,6 @@ int rss_binary_string(struct zint_symbol *symbol, char source[], char binary_str
|
|||||||
/* There is still one more numeric digit to encode */
|
/* There is still one more numeric digit to encode */
|
||||||
if (debug) printf("Adding extra (odd) numeric digit\n");
|
if (debug) printf("Adding extra (odd) numeric digit\n");
|
||||||
|
|
||||||
if (mode == NUMERIC) {
|
|
||||||
if ((remainder >= 4) && (remainder <= 6)) {
|
if ((remainder >= 4) && (remainder <= 6)) {
|
||||||
bin_append(ctoi(last_digit) + 1, 4, binary_string);
|
bin_append(ctoi(last_digit) + 1, 4, binary_string);
|
||||||
} else {
|
} else {
|
||||||
@ -1435,9 +1434,6 @@ int rss_binary_string(struct zint_symbol *symbol, char source[], char binary_str
|
|||||||
|
|
||||||
bin_append((11 * d1) + d2 + 8, 7, binary_string);
|
bin_append((11 * d1) + d2 + 8, 7, binary_string);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
bin_append(last_digit - 43, 5, binary_string);
|
|
||||||
}
|
|
||||||
|
|
||||||
remainder = 12 - (strlen(binary_string) % 12);
|
remainder = 12 - (strlen(binary_string) % 12);
|
||||||
if (remainder == 12) {
|
if (remainder == 12) {
|
||||||
|
Loading…
Reference in New Issue
Block a user