Skip to content

Commit 09c4dfa

Browse files
committed
utf8n_to_uvchr_msgs: Variable can be narrower
It only needs 8 bits, but tell compiler to prioritize speed
1 parent 2318eaa commit 09c4dfa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

inline.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3038,8 +3038,7 @@ Perl_utf8n_to_uvchr_msgs(const U8 *s,
30383038
* would have been named 'class' except that is a reserved word in C++
30393039
* */
30403040
PERL_UINT_FAST8_T type = PL_strict_utf8_dfa_tab[*s];
3041-
3042-
UV state = PL_strict_utf8_dfa_tab[256 + type];
3041+
PERL_UINT_FAST8_T state = PL_strict_utf8_dfa_tab[256 + type];
30433042
uv = (0xff >> type) & NATIVE_UTF8_TO_I8(*s);
30443043

30453044
while (state > 1 && ++s < send) {

0 commit comments

Comments
 (0)