Skip to content

Commit

Permalink
Drop useless and not quite correct cast
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
cmb69 committed Jan 12, 2025
1 parent f99d620 commit 55458d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/standard/dns_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 55458d0

Please sign in to comment.