diff options
author | Karl Williamson <khw@cpan.org> | 2023-02-24 15:27:52 -0700 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-02-26 00:35:16 +0800 |
commit | 8a6c2cd5939ef52e6f72be6e6a26d7898cb02945 (patch) | |
tree | b3272d46fd76c4cab17b96118b3f441722afd68f /utf8.h | |
parent | d2de71604bdb603adc11accc37b82b60532f4688 (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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? |