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

postal/qzint: suppress some "-Wshorten-64-to-32" warnings

auspost: check z_zero_fill > 0 (pedantic)
This commit is contained in:
gitlost
2026-04-27 18:05:34 +01:00
parent 0959e273a6
commit b0b8c28380
3 changed files with 11 additions and 11 deletions

View File

@@ -154,7 +154,7 @@ INTERNAL int zint_postnet(struct zint_symbol *symbol, unsigned char source[], in
/* Stop character */
*d++ = ascender;
h = d - dest;
h = (unsigned int) (d - dest);
for (loopey = 0, writer = 0; loopey < h; loopey++, writer += 2) {
if (dest[loopey] == ascender) {
z_set_module(symbol, 0, writer);
@@ -390,7 +390,7 @@ static int rm4scc_enc(struct zint_symbol *symbol, const int *const posns, char *
/* Stop character */
*d++ = 0; /* Full */
*p_dest_len = d - dest;
*p_dest_len = (int) (d - dest);
return KRSET[check_digit];
}