Skip to content

Commit c669642

Browse files
committed
Silence clang compilation warning
Commit 9acaa98 introduced a compilation warning that I only have seen with clang. Casting appropriately gets rid of it.
1 parent 9acaa98 commit c669642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utf8.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2404,7 +2404,7 @@ Perl_utf8_to_bytes(pTHX_ U8 *s, STRLEN *lenp)
24042404
/* There is some start-up/tear-down overhead with this, so no real gain
24052405
* unless the remaining portion of the string is long enough. The current
24062406
* value is just a guess. */
2407-
if ((send - s) > 5 * PERL_WORDSIZE) {
2407+
if ((send - s) > (ptrdiff_t) (5 * PERL_WORDSIZE)) {
24082408

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

0 commit comments

Comments
 (0)