From 8a6c2cd5939ef52e6f72be6e6a26d7898cb02945 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Fri, 24 Feb 2023 15:27:52 -0700 Subject: utf8.h: Rmv improper (STRLEN) cast An enum is supposed to be an int. STRLEN may be too large for that. (I suspect the cast was inadvertently left in converting from an earlier implementation that was never released.) Spotted by H. Merijn Brand. --- utf8.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utf8.h') diff --git a/utf8.h b/utf8.h index e0b08ad6fb..bbf86c59a0 100644 --- a/utf8.h +++ b/utf8.h @@ -106,7 +106,7 @@ typedef enum { matter */ UTF8NESS_YES = 2, /* Defintely is UTF-8, wideness unspecified */ - UTF8NESS_UNKNOWN = (STRLEN) -1, /* Undetermined so far */ + UTF8NESS_UNKNOWN = -1, /* Undetermined so far */ } utf8ness_t; /* Use UTF-8 as the default script encoding? -- cgit v1.2.1