Skip to content

Commit bb07e05

Browse files
committed
utf8_to_uv_msgs: Add branch predictions
These two input parameters are for very specialized uses.
1 parent 0401b9c commit bb07e05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utf8.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,10 +1383,10 @@ Perl__utf8n_to_uvchr_msgs_helper(const U8 *s,
13831383
* final case. */
13841384

13851385
/* Assume will be successful; override later if necessary */
1386-
if (errors) {
1386+
if (UNLIKELY(errors)) {
13871387
*errors = 0;
13881388
}
1389-
if (msgs) {
1389+
if (UNLIKELY(msgs)) {
13901390
*msgs = NULL;
13911391
}
13921392

0 commit comments

Comments
 (0)