From 44641fd8d5b042919bfaa692dd378e595e3bd564 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Fri, 15 Nov 2024 08:39:31 -0700 Subject: [PATCH] utf8.c: Replace expression by equivalent macro No sense reinventing the wheel, as they say --- utf8.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utf8.c b/utf8.c index 326525711173..c3739a3bebe2 100644 --- a/utf8.c +++ b/utf8.c @@ -1616,8 +1616,7 @@ Perl__utf8n_to_uvchr_msgs_helper(const U8 *s, * byte. For surrogates we could just look at the bytes, but * this single algorithm works for both those and supers. */ for (unsigned i = curlen; i < expectlen; i++) { - uv = UTF8_ACCUMULATE(uv, - I8_TO_NATIVE_UTF8(UTF_MIN_CONTINUATION_BYTE)); + uv = UTF8_ACCUMULATE(uv, UTF8_MIN_CONTINUATION_BYTE); } }