1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-06-10 15:43:40 +00:00

GUI: suppress some more "-Wshorten-64-to-32" warnings (qt5/6 diff)

AZTEC: better assert
BWIPP: latest
This commit is contained in:
gitlost
2026-05-06 22:49:41 +01:00
parent 0a617a410b
commit 76aac611ca
7 changed files with 45 additions and 21 deletions
+1 -1
View File
@@ -489,7 +489,7 @@ static void az_state_free(struct az_state *state) {
/* Check that there's enough room for `extra` more tokens in `state` */
static int az_tokens_add_chk(struct az_state *state, const int extra) {
assert(extra < AZ_MIN_TOKENS_SIZE);
assert(extra > 0 && extra < AZ_MIN_TOKENS_SIZE);
if (!state->tokens.tokens) {
const unsigned short size = AZ_MIN_TOKENS_SIZE;
if (!(state->tokens.tokens = (struct az_token *) malloc(sizeof(struct az_token) * size))) {