From c6696424838223c8c83f83a4aa3160f457155f63 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 10 Oct 2024 16:48:45 -0600 Subject: [PATCH] Silence clang compilation warning Commit 9acaa9844a1adc113059335846a097b435800a22 introduced a compilation warning that I only have seen with clang. Casting appropriately gets rid of it. --- utf8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utf8.c b/utf8.c index ac9241966273..94dc2ce3778c 100644 --- a/utf8.c +++ b/utf8.c @@ -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