mirror of
https://git.code.sf.net/p/zint/code
synced 2026-05-01 11:45:29 +00:00
postal/qzint: suppress some "-Wshorten-64-to-32" warnings
auspost: check z_zero_fill > 0 (pedantic)
This commit is contained in:
@@ -139,7 +139,7 @@ INTERNAL int zint_auspost(struct zint_symbol *symbol, unsigned char source[], in
|
||||
"Invalid character at position %d in DPID (digits only for Standard Customer Barcode)",
|
||||
not_all_digits);
|
||||
}
|
||||
if (z_zero_fill(source, length, src_buf, 8)) {
|
||||
if (z_zero_fill(source, length, src_buf, 8) > 0) {
|
||||
source = src_buf;
|
||||
length = 8;
|
||||
}
|
||||
@@ -184,7 +184,7 @@ INTERNAL int zint_auspost(struct zint_symbol *symbol, unsigned char source[], in
|
||||
"Invalid character at position %d in DPID (digits only)", i);
|
||||
}
|
||||
/* Add leading zeros as required */
|
||||
if (z_zero_fill(source, length, src_buf, 8)) {
|
||||
if (z_zero_fill(source, length, src_buf, 8) > 0) {
|
||||
source = src_buf;
|
||||
length = 8;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user