Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -2404,7 +2404,7 @@ Perl_utf8_to_bytes(pTHX_ U8 *s, STRLEN *lenp)
/* There is some start-up/tear-down overhead with this, so no real gain
* unless the remaining portion of the string is long enough. The current
* value is just a guess. */
if ((send - s) > 5 * PERL_WORDSIZE) {
if ((send - s) > (ptrdiff_t) (5 * PERL_WORDSIZE)) {

/* First, go through the string a word at-a-time to verify that it is
* downgradable. If it contains any start byte besides C2 and C3, then
Expand Down