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
|
@ -294,7 +294,7 @@ int code16k(struct zint_symbol *symbol, unsigned char source[], int length)
|
|||
for(i = 0; i < read; i++) {
|
||||
if(set[i] == 'C') {
|
||||
if(source[i] == '[') {
|
||||
if(c_count % 2) {
|
||||
if(c_count & 1) {
|
||||
if((i - c_count) != 0) {
|
||||
set[i - c_count] = 'B';
|
||||
} else {
|
||||
|
@ -306,7 +306,7 @@ int code16k(struct zint_symbol *symbol, unsigned char source[], int length)
|
|||
c_count++;
|
||||
}
|
||||
} else {
|
||||
if(c_count % 2) {
|
||||
if(c_count & 1) {
|
||||
if((i - c_count) != 0) {
|
||||
set[i - c_count] = 'B';
|
||||
} else {
|
||||
|
@ -316,7 +316,7 @@ int code16k(struct zint_symbol *symbol, unsigned char source[], int length)
|
|||
c_count = 0;
|
||||
}
|
||||
}
|
||||
if(c_count % 2) {
|
||||
if(c_count & 1) {
|
||||
if((i - c_count) != 0) {
|
||||
set[i - c_count] = 'B';
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue