summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2023-02-24 15:27:52 -0700
committerYves Orton <demerphq@gmail.com>2023-02-26 00:35:16 +0800
commit8a6c2cd5939ef52e6f72be6e6a26d7898cb02945 (patch)
treeb3272d46fd76c4cab17b96118b3f441722afd68f /utf8.h
parentd2de71604bdb603adc11accc37b82b60532f4688 (diff)
downloadperl-8a6c2cd5939ef52e6f72be6e6a26d7898cb02945.tar.gz
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.
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h2
1 files changed, 1 insertions, 1 deletions
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?