Skip to content

Commit

Permalink
Silence clang compilation warning
Browse files Browse the repository at this point in the history
Commit 9acaa98 introduced a compilation
warning that I only have seen with clang.  Casting appropriately gets
rid of it.
  • Loading branch information
khwilliamson committed Oct 11, 2024
1 parent 9acaa98 commit c669642
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit c669642

Please sign in to comment.