Skip to content

Commit 2e86df3

Browse files
committed
utf8.c: Avoid a UTF8SKIP
This value is returnable from the called function. Use it instead of re-deriving it
1 parent feb2c50 commit 2e86df3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utf8.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4276,13 +4276,14 @@ S_turkic_lc(pTHX_ const U8 * const p0, const U8 * const e,
42764276
/* For the dot above to modify the 'I', it must be part of a
42774277
* combining sequence immediately following the 'I', and no other
42784278
* modifier with a ccc of 230 may intervene */
4279-
cp = utf8_to_uv_or_die(p, e, NULL);
4279+
Size_t advance;
4280+
cp = utf8_to_uv_or_die(p, e, &advance);
42804281
if (! _invlist_contains_cp(PL_CCC_non0_non230, cp)) {
42814282
break;
42824283
}
42834284

42844285
/* Here the combining sequence continues */
4285-
p += UTF8SKIP(p);
4286+
p += advance;
42864287
}
42874288
}
42884289

0 commit comments

Comments
 (0)