From c75fcb49fb8af210d2167a7d334ee071cce0b2c0 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 10 May 2021 07:30:24 -0600 Subject: [PATCH] regexec.c: Replace code with equivlent inline fcn Don't repeat a paradigm --- regexec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/regexec.c b/regexec.c index 452a298b9ba8..4e71e5652208 100644 --- a/regexec.c +++ b/regexec.c @@ -6788,8 +6788,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog) } else { if (utf8_target) - while (chars--) - uc += UTF8SKIP(uc); + uc = utf8_hop(uc, chars); else uc += chars; }