Skip to content

Commit 289fed2

Browse files
committed
cleanup: cast option to curl_easy_setopt
Also found via LTO mismatch.
1 parent 759e583 commit 289fed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ release_get_latest(void)
456456

457457
curl_easy_setopt(handle, CURLOPT_URL, url);
458458
curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, _data_callback);
459-
curl_easy_setopt(handle, CURLOPT_TIMEOUT, 2);
459+
curl_easy_setopt(handle, CURLOPT_TIMEOUT, (long)2);
460460
curl_easy_setopt(handle, CURLOPT_WRITEDATA, (void*)&output);
461461

462462
curl_easy_perform(handle);

0 commit comments

Comments
 (0)