Skip to content

Commit

Permalink
utf8n_to_uvuni: Use utf8_to_uv()
Browse files Browse the repository at this point in the history
This is the preferred function
  • Loading branch information
khwilliamson committed Dec 5, 2024
1 parent 00f06a3 commit eb8ddac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mathoms.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ Perl_utf8n_to_uvuni(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags)
{
PERL_ARGS_ASSERT_UTF8N_TO_UVUNI;

return NATIVE_TO_UNI(utf8n_to_uvchr(s, curlen, retlen, flags));
UV cp;
utf8_to_uv_flags(s, s + curlen, &cp, retlen, flags);
return NATIVE_TO_UNI(cp);
}

UV
Expand Down

0 comments on commit eb8ddac

Please sign in to comment.