1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-07-31 02:19:50 +00:00

AZTEC: fix return type of az_all_byte_only_or_uld() char -> int

so that the -1 compare doesn't fail on default unsigned char
  machines (e.g. arm) (ticket #355, props codemonkey82)
This commit is contained in:
gitlost
2026-06-30 16:35:56 +01:00
parent a81c9d9258
commit fdaed0b1c8
2 changed files with 26 additions and 1 deletions
+1 -1
View File
@@ -410,7 +410,7 @@ static int az_text_modes(char modes[], unsigned char source[], const int length,
/* Cheapo to check if input all of one type of Byte-only, Upper, Lower or Digit, returning AZ_B, AZ_U, AZ_L or AZ_D
resp., or -1 if not */
static char az_all_byte_only_or_uld(const unsigned char source[], const int length) {
static int az_all_byte_only_or_uld(const unsigned char source[], const int length) {
int i;
int byte_only, upper, lower, digit;