From f9fbc7a5067b78b9fe03e3bcde5e46f82a5704ba Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Wed, 1 May 2024 15:32:03 +1200 Subject: [PATCH] lib/util/charset: be explicit about INVALID_CODEPOINT value Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- lib/util/charset/charset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.47.3