]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
clang-tidy: add missing parentheses to debug macro arguments
authorViktor Szakats <commit@vsz.me>
Sun, 22 Feb 2026 12:10:32 +0000 (13:10 +0100)
committerViktor Szakats <commit@vsz.me>
Sun, 22 Feb 2026 12:51:02 +0000 (13:51 +0100)
Follow-up to 139307865a32a1a229e7517946e979e19e2f42c0 #20647

Closes #20674

lib/curl_setup.h

index bd30ba9cbcbb69bd0d33d273b07857044eb3b361..caf9cab4ead723ab7d5e3f8fb584ade175faa723 100644 (file)
@@ -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) \