1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-05-14 18:13:53 +00:00

common: move FM_NO_VSNPRINTF (filemem) -> Z_NO_VSNPRINTF & use

AZTEC: suppress MSVC warning C4761: integral size mismatch in arg
This commit is contained in:
gitlost
2026-05-05 21:34:58 +01:00
parent 88ca9cc43c
commit 0a617a410b
6 changed files with 18 additions and 17 deletions

View File

@@ -980,7 +980,8 @@ static int az_binary_string(const unsigned char source[], const int length, int
const int entry_bp = bp;
#endif
if (!az_state_list_init(list, length)) {
assert(length < USHRT_MAX);
if (!az_state_list_init(list, (unsigned short) length)) {
return 0;
}
memset(list->states, 0, sizeof(struct az_state));