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