Skip to content

Commit d770ea9

Browse files
committed
regcomp_study: Use utf8_to-uv_or_die not utf8_to_uvchr_buf
1 parent 5f1619e commit d770ea9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regcomp_study.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ S_make_exactf_invlist(pTHX_ RExC_state_t *pRExC_state, regnode *node)
143143
const U8* e = s + bytelen;
144144
IV fc;
145145

146-
fc = uc = utf8_to_uvchr_buf(s, s + bytelen, NULL);
146+
fc = uc = utf8_to_uv_or_die(s, s + bytelen, NULL);
147147

148148
/* The only code points that aren't folded in a UTF EXACTFish
149149
* node are the problematic ones in EXACTFL nodes */
@@ -2249,7 +2249,7 @@ Perl_study_chunk(pTHX_
22492249
assert(bytelen);
22502250
if (UTF) {
22512251
const U8 * const s = (U8*)STRING(scan);
2252-
uc = utf8_to_uvchr_buf(s, s + bytelen, NULL);
2252+
uc = utf8_to_uv_or_die(s, s + bytelen, NULL);
22532253
charlen = utf8_length(s, s + bytelen);
22542254
} else {
22552255
uc = *((U8*)STRING(scan));

0 commit comments

Comments
 (0)