]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/util/charset: be explicit about INVALID_CODEPOINT value
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 1 May 2024 03:32:03 +0000 (15:32 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 22 May 2024 23:12:32 +0000 (23:12 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/charset/charset.h

index 12dc348bdb70e207ac3af24ae852edabfff573c0..1f90718028caca7a3b0036c903b8572193150d83 100644 (file)
@@ -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 {