Skip to content

Commit be9dcee

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 f9d2dee commit be9dcee

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
@@ -4275,13 +4275,14 @@ S_turkic_lc(pTHX_ const U8 * const p0, const U8 * const e,
42754275
/* For the dot above to modify the 'I', it must be part of a
42764276
* combining sequence immediately following the 'I', and no other
42774277
* modifier with a ccc of 230 may intervene */
4278-
cp = utf8_to_uv_or_die(p, e, NULL);
4278+
Size_t advance;
4279+
cp = utf8_to_uv_or_die(p, e, &advance);
42794280
if (! _invlist_contains_cp(PL_CCC_non0_non230, cp)) {
42804281
break;
42814282
}
42824283

42834284
/* Here the combining sequence continues */
4284-
p += UTF8SKIP(p);
4285+
p += advance;
42854286
}
42864287
}
42874288

0 commit comments

Comments
 (0)