From be9dceea4583f4fdabe2cf42ccd0d16721491d7a Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Tue, 2 Sep 2025 12:44:19 -0600 Subject: [PATCH] utf8.c: Avoid a UTF8SKIP This value is returnable from the called function. Use it instead of re-deriving it --- utf8.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utf8.c b/utf8.c index d72de4e60c96..a2c4aec93a04 100644 --- a/utf8.c +++ b/utf8.c @@ -4275,13 +4275,14 @@ S_turkic_lc(pTHX_ const U8 * const p0, const U8 * const e, /* For the dot above to modify the 'I', it must be part of a * combining sequence immediately following the 'I', and no other * modifier with a ccc of 230 may intervene */ - cp = utf8_to_uv_or_die(p, e, NULL); + Size_t advance; + cp = utf8_to_uv_or_die(p, e, &advance); if (! _invlist_contains_cp(PL_CCC_non0_non230, cp)) { break; } /* Here the combining sequence continues */ - p += UTF8SKIP(p); + p += advance; } }