mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-16 08:04:36 -04:00
A couple of small bugfixes were found by the PIRAmIDE project.
This commit is contained in:
parent
3d1f2dc29c
commit
4782ebb76d
2 changed files with 2 additions and 2 deletions
|
@ -1982,7 +1982,7 @@ int rssexpanded(struct zint_symbol *symbol, unsigned char source[], int src_len)
|
|||
elements in the data characters. */
|
||||
checksum = 0;
|
||||
for(i = 0; i < data_chars; i++) {
|
||||
row = weight_rows[(((data_chars - 3) / 2) * 21) + i];
|
||||
row = weight_rows[(((data_chars - 2) / 2) * 21) + i];
|
||||
for(j = 0; j < 8; j++) {
|
||||
checksum += (char_widths[i][j] * checksum_weight_exp[(row * 8) + j]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue