CODE128: suppress cppcheck out-of-bounds warning; plus others (#233)

This commit is contained in:
gitlost
2021-07-07 13:58:04 +01:00
parent 3e995c70fb
commit f03da2f4ba
12 changed files with 49 additions and 47 deletions

View File

@ -612,9 +612,9 @@ const char *testUtilOption3Name(int option_3) {
if (high_byte) {
if (option_3 & 0xFF) {
sprintf(buffer, "%s | (%d << 8)", name, high_byte);
sprintf(buffer, "%s | (%d << 8)", name, (int) high_byte);
} else {
sprintf(buffer, "%d << 8", high_byte);
sprintf(buffer, "%d << 8", (int) high_byte);
}
return buffer;
}