From 55458d0bcabc5e90b7c21c315d59464f0114731c Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 12 Jan 2025 21:24:25 +0100 Subject: [PATCH] Drop useless and not quite correct cast A while ago, the cast has been changed from `u_char *` to `uint8_t *`, but neither makes sense, and causes Clang to complain with `-Wcompare-distinct-pointer-types`. --- ext/standard/dns_win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c index 616d9eb4368fa..26c6487902e1a 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -260,7 +260,7 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, bool raw for(i=0; i < 8; i++) { if (out[i] != 0) { - if (tp > (uint8_t *)buf) { + if (tp > buf) { in_v6_break = 0; tp[0] = ':'; tp++;