Skip to content

Commit 25b3bcb

Browse files
committed
utf8n_to_uvchr_msgs: Move code to only remaining branch
Replace the goto by the code it jumped to, as there is no longer any other code that jumps to it.
1 parent c11db10 commit 25b3bcb

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

inline.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3048,18 +3048,16 @@ Perl_utf8n_to_uvchr_msgs(const U8 *s,
30483048
}
30493049

30503050
if (LIKELY(state == 0)) {
3051-
goto success;
3052-
}
3053-
3054-
/* Here is potentially problematic. Use the full mechanism */
3055-
return _utf8n_to_uvchr_msgs_helper(s0, curlen, retlen, flags,
3056-
errors, msgs);
3057-
success:
30583051
if (retlen) {
30593052
*retlen = s - s0 + 1;
30603053
}
30613054

30623055
return UNI_TO_NATIVE(uv);
3056+
}
3057+
3058+
/* Here is potentially problematic. Use the full mechanism */
3059+
return _utf8n_to_uvchr_msgs_helper(s0, curlen, retlen, flags,
3060+
errors, msgs);
30633061
}
30643062

30653063
PERL_STATIC_INLINE UV

0 commit comments

Comments
 (0)