Skip to content

Commit a233e0d

Browse files
committed
pp_uc: Use utf8_to-uv_or_die not utf8_to_uvchr_buf
1 parent c3dff8a commit a233e0d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pp.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4591,7 +4591,7 @@ PP_wrapped(pp_uc, 1, 0)
45914591
STRLEN ulen;
45924592
UV uv;
45934593
if (UNLIKELY(in_iota_subscript)) {
4594-
UV cp = utf8_to_uvchr_buf(s, send, NULL);
4594+
UV cp = utf8_to_uv_or_die(s, send, NULL);
45954595

45964596
if (! _invlist_contains_cp(PL_utf8_mark, cp)) {
45974597

@@ -4611,8 +4611,9 @@ PP_wrapped(pp_uc, 1, 0)
46114611
#else
46124612
uv = _toUPPER_utf8_flags(s, send, tmpbuf, &ulen, 0);
46134613
#endif
4614-
if (uv == GREEK_CAPITAL_LETTER_IOTA
4615-
&& utf8_to_uvchr_buf(s, send, 0) == COMBINING_GREEK_YPOGEGRAMMENI)
4614+
if ( uv == GREEK_CAPITAL_LETTER_IOTA
4615+
&& utf8_to_uv_or_die(s, send, 0) ==
4616+
COMBINING_GREEK_YPOGEGRAMMENI)
46164617
{
46174618
in_iota_subscript = TRUE;
46184619
}

0 commit comments

Comments
 (0)