mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-12 22:25:59 -04:00
More code cleanup
Patch 7 of 7 from "Ismael Luceno" <ismael.luceno@gmail.com>
This commit is contained in:
parent
fc83343133
commit
7da2041cfd
19 changed files with 198 additions and 313 deletions
|
@ -71,7 +71,7 @@ void maxi_do_secondary_chk_odd( int ecclen )
|
|||
datalen = 84;
|
||||
|
||||
for(j = 0; j < datalen; j += 1)
|
||||
if ((j % 2) == 1) // odd
|
||||
if (j & 1) // odd
|
||||
data[(j-1)/2] = maxi_codeword[j + 20];
|
||||
|
||||
rs_encode(datalen/2, data, results);
|
||||
|
@ -96,7 +96,7 @@ void maxi_do_secondary_chk_even(int ecclen )
|
|||
rs_init_code(ecclen, 1);
|
||||
|
||||
for(j = 0; j < datalen + 1; j += 1)
|
||||
if ((j % 2) == 0) // even
|
||||
if (!(j & 1)) // even
|
||||
data[j/2] = maxi_codeword[j + 20];
|
||||
|
||||
rs_encode(datalen/2, data, results);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue