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:
+1
-1
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user