1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Drop useless and not quite correct cast (GH-17454)

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`.
This commit is contained in:
Christoph M. Becker
2025-01-17 17:56:52 +01:00
committed by GitHub
parent 8765e9f5e7
commit dd42ebef94

View File

@@ -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++;