From 707146bc07911ee2a364fa9fba57df69415d53d3 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 1 Jul 2025 14:47:11 +0200 Subject: [PATCH] drop cast for CURL_HTTP_VERSION_3 in examples (for consistency with rest of code) --- docs/examples/http3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/http3.c b/docs/examples/http3.c index 34d7da4ee8..573ea20d2b 100644 --- a/docs/examples/http3.c +++ b/docs/examples/http3.c @@ -38,7 +38,7 @@ int main(void) curl_easy_setopt(curl, CURLOPT_URL, "https://example.com"); /* Use HTTP/3 but fallback to earlier HTTP if necessary */ - curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, (long)CURL_HTTP_VERSION_3); + curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_3); /* Perform the request, res gets the return code */ res = curl_easy_perform(curl);