Skip to content

Commit 012637a

Browse files
committed
isUTF8_CHAR: Declare variable to be U16, not UV
The data here only needs 8 bits on ASCII platforms; 9 on EBCDIC. Using fast U16 works for both. I don't think it's worth an #ifdef. f
1 parent 30c5679 commit 012637a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2244,7 +2244,7 @@ Perl_is_utf8_string_loclen(const U8 *s, STRLEN len, const U8 **ep, STRLEN *el)
22442244
STMT_START { \
22452245
const U8 * s8dfa_ = s0; \
22462246
const U8 * const e8dfa_ = e; \
2247-
UV state = 0; \
2247+
PERL_UINT_FAST16_T state = 0; \
22482248
\
22492249
PERL_NON_CORE_CHECK_EMPTY(s8dfa_, e8dfa_); \
22502250
\

0 commit comments

Comments
 (0)