From: Viktor Szakats Date: Fri, 22 Aug 2025 11:45:06 +0000 (+0200) Subject: test1557: pass `long` type to `multi_setopt()` X-Git-Tag: curl-8_16_0~126 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6c29071724680b72a300591d69e7133e64358f1;p=thirdparty%2Fcurl.git test1557: pass `long` type to `multi_setopt()` A wrong type here has seen to manifest in CI failures with gcc-12 macOS. Ref: https://github.com/curl/curl/pull/18348#issuecomment-3213881790 Ref: https://github.com/curl/curl/actions/runs/17153761944/job/48665734013?pr=18349 Follow-up to b63cce7fee30648e29a0453202f7ba05a01de79c #18339 Follow-up to 88fc6c491f043ed184ea2cf1a17b651427fbbbf5 #18263 Closes #18355 --- diff --git a/tests/libtest/lib1557.c b/tests/libtest/lib1557.c index 2381c07b6a..0e33f48fbb 100644 --- a/tests/libtest/lib1557.c +++ b/tests/libtest/lib1557.c @@ -36,7 +36,7 @@ static CURLcode test_lib1557(const char *URL) global_init(CURL_GLOBAL_ALL); multi_init(curlm); - multi_setopt(curlm, CURLMOPT_MAX_HOST_CONNECTIONS, 1); + multi_setopt(curlm, CURLMOPT_MAX_HOST_CONNECTIONS, 1L); easy_init(curl1); easy_setopt(curl1, CURLOPT_URL, URL);