Skip to content

Commit 0299b73

Browse files
committed
regexec.c: Use preferred utf8_to_uv; not utf8_to_uvchr_buf
This is in the function S_isFOO_utf8_lc()
1 parent 00f06a3 commit 0299b73

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

regexec.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,9 @@ S_isFOO_utf8_lc(pTHX_ const U8 classnum, const U8* character, const U8* e)
615615
case CC_ENUM_XDIGIT_: return is_XDIGIT_high(character);
616616
case CC_ENUM_VERTSPACE_: return is_VERTWS_high(character);
617617
default:
618-
return _invlist_contains_cp(PL_XPosix_ptrs[classnum],
619-
utf8_to_uvchr_buf(character, e, NULL));
618+
UV cp;
619+
return utf8_to_uv(character, e, &cp, NULL)
620+
&& _invlist_contains_cp(PL_XPosix_ptrs[classnum], cp);
620621
}
621622
NOT_REACHED; /* NOTREACHED */
622623
}

0 commit comments

Comments
 (0)