mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-01 15:48:25 -04:00
CODE128: suppress cppcheck out-of-bounds warning; plus others (#233)
This commit is contained in:
parent
3e995c70fb
commit
f03da2f4ba
12 changed files with 49 additions and 47 deletions
backend
|
@ -910,7 +910,7 @@ static int c1_encode(struct zint_symbol *symbol, unsigned char source[], unsigne
|
|||
if (debug_print) {
|
||||
printf("Target (%d):", tp);
|
||||
for (i = 0; i < tp; i++) {
|
||||
printf(" [%d]", target[i]);
|
||||
printf(" [%d]", (int) target[i]);
|
||||
}
|
||||
printf("\nLast Mode: %d\n", *p_last_mode);
|
||||
}
|
||||
|
@ -999,7 +999,7 @@ INTERNAL int code_one(struct zint_symbol *symbol, unsigned char source[], int le
|
|||
|
||||
if (symbol->debug & ZINT_DEBUG_PRINT) {
|
||||
printf("Codewords (%d): ", codewords);
|
||||
for (i = 0; i < codewords * 2; i++) printf(" %d", data[i]);
|
||||
for (i = 0; i < codewords * 2; i++) printf(" %d", (int) data[i]);
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
|
@ -1087,7 +1087,7 @@ INTERNAL int code_one(struct zint_symbol *symbol, unsigned char source[], int le
|
|||
|
||||
if (symbol->debug & ZINT_DEBUG_PRINT) {
|
||||
printf("Codewords (%d):", data_cw + ecc_cw);
|
||||
for (i = 0; i < data_cw + ecc_cw; i++) printf(" %d", data[i]);
|
||||
for (i = 0; i < data_cw + ecc_cw; i++) printf(" %d", (int) data[i]);
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
|
@ -1177,7 +1177,7 @@ INTERNAL int code_one(struct zint_symbol *symbol, unsigned char source[], int le
|
|||
|
||||
if (symbol->debug & ZINT_DEBUG_PRINT) {
|
||||
printf("Codewords (%d):", data_cw + ecc_length);
|
||||
for (i = 0; i < data_cw + ecc_length; i++) printf(" %d", data[i]);
|
||||
for (i = 0; i < data_cw + ecc_length; i++) printf(" %d", (int) data[i]);
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue