Skip to content

Commit

Permalink
utf8.c: Replace expression by equivalent macro
Browse files Browse the repository at this point in the history
No sense reinventing the wheel, as they say
  • Loading branch information
khwilliamson committed Nov 26, 2024
1 parent f2b0b69 commit 44641fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 44641fd

Please sign in to comment.