Skip to content

Commit 44641fd

Browse files
committed
utf8.c: Replace expression by equivalent macro
No sense reinventing the wheel, as they say
1 parent f2b0b69 commit 44641fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utf8.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,8 +1616,7 @@ Perl__utf8n_to_uvchr_msgs_helper(const U8 *s,
16161616
* byte. For surrogates we could just look at the bytes, but
16171617
* this single algorithm works for both those and supers. */
16181618
for (unsigned i = curlen; i < expectlen; i++) {
1619-
uv = UTF8_ACCUMULATE(uv,
1620-
I8_TO_NATIVE_UTF8(UTF_MIN_CONTINUATION_BYTE));
1619+
uv = UTF8_ACCUMULATE(uv, UTF8_MIN_CONTINUATION_BYTE);
16211620
}
16221621
}
16231622

0 commit comments

Comments
 (0)