Skip to content

Commit dd42ebe

Browse files
authored
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`.
1 parent 8765e9f commit dd42ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/dns_win32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, bool raw
260260

261261
for(i=0; i < 8; i++) {
262262
if (out[i] != 0) {
263-
if (tp > (uint8_t *)buf) {
263+
if (tp > buf) {
264264
in_v6_break = 0;
265265
tp[0] = ':';
266266
tp++;

0 commit comments

Comments
 (0)