Skip to content

Commit 3aedd04

Browse files
committed
utf8n_to_uvchr_msgs: Add branch prediction
1 parent 3151c32 commit 3aedd04

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
@@ -3005,7 +3005,7 @@ Perl_utf8n_to_uvchr_msgs(const U8 *s,
30053005
#ifdef PERL_CORE
30063006
assert(curlen > 0);
30073007
#else
3008-
if (curlen == 0) return _utf8n_to_uvchr_msgs_helper(s0, 0, retlen,
3008+
if (UNLIKELY(curlen == 0)) return _utf8n_to_uvchr_msgs_helper(s0, 0, retlen,
30093009
flags, errors, msgs);
30103010
#endif
30113011

0 commit comments

Comments
 (0)