From: Douglas Bagnall Date: Wed, 1 May 2024 03:32:03 +0000 (+1200) Subject: lib/util/charset: be explicit about INVALID_CODEPOINT value X-Git-Tag: tdb-1.4.11~572 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9fbc7a5067b78b9fe03e3bcde5e46f82a5704ba;p=thirdparty%2Fsamba.git lib/util/charset: be explicit about INVALID_CODEPOINT value Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/lib/util/charset/charset.h b/lib/util/charset/charset.h index 12dc348bdb7..1f90718028c 100644 --- a/lib/util/charset/charset.h +++ b/lib/util/charset/charset.h @@ -75,7 +75,7 @@ struct charset_functions { /* this type is used for manipulating unicode codepoints */ typedef uint32_t codepoint_t; -#define INVALID_CODEPOINT ((codepoint_t)-1) +#define INVALID_CODEPOINT (UINT32_MAX) /* generic iconv conversion structure */ typedef struct smb_iconv_s {