112-bit modulus bug - result is never 0.

This commit is contained in:
hooper114 2009-08-03 22:56:44 +00:00
parent 4a31544645
commit af26cb69f2
2 changed files with 65 additions and 2 deletions

View file

@ -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]);