From e009beab89f88fa0fc347789b26e734e3febeabe Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 22 Feb 2026 13:10:32 +0100 Subject: [PATCH] clang-tidy: add missing parentheses to debug macro arguments Follow-up to 139307865a32a1a229e7517946e979e19e2f42c0 #20647 Closes #20674 --- lib/curl_setup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/curl_setup.h b/lib/curl_setup.h index bd30ba9cbc..caf9cab4ea 100644 --- a/lib/curl_setup.h +++ b/lib/curl_setup.h @@ -1411,10 +1411,10 @@ CURL_EXTERN ALLOC_FUNC FILE *curl_dbg_fdopen(int filedes, const char *mode, #define CURL_FREEADDRINFO(data) \ curl_dbg_freeaddrinfo(data, __LINE__, __FILE__) #define CURL_SOCKET(domain, type, protocol) \ - curl_dbg_socket((int)domain, type, protocol, __LINE__, __FILE__) + curl_dbg_socket((int)(domain), type, protocol, __LINE__, __FILE__) #ifdef HAVE_SOCKETPAIR #define CURL_SOCKETPAIR(domain, type, protocol, socket_vector) \ - curl_dbg_socketpair((int)domain, type, protocol, socket_vector, \ + curl_dbg_socketpair((int)(domain), type, protocol, socket_vector, \ __LINE__, __FILE__) #endif #define CURL_ACCEPT(sock, addr, len) \