mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-09 13:41:59 -04:00
112-bit modulus bug - result is never 0.
This commit is contained in:
parent
4a31544645
commit
af26cb69f2
2 changed files with 65 additions and 2 deletions
|
@ -595,6 +595,13 @@ int imail(struct zint_symbol *symbol, unsigned char source[])
|
|||
(y_reg[4] * 16) + (y_reg[3] * 8) + (y_reg[2] * 4) +
|
||||
(y_reg[1] * 2) + y_reg[0];
|
||||
|
||||
for(i = 0; i < 8; i++) {
|
||||
if(codeword[i] == 1365) {
|
||||
codeword[i] = 0;
|
||||
codeword[i + 1]++;
|
||||
}
|
||||
}
|
||||
|
||||
/* printf("Codewords 3: ");
|
||||
for(i = 0; i < 10; i++) {
|
||||
printf("%d ", codeword[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue