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);