mirror of
https://github.com/curl/curl.git
synced 2026-07-16 04:57:16 +03:00
curl_multi_setopt: fix compiler warning "result is always false"
On systems with 32 bit long the expression is always false. Avoid
the warning.
Reported-by: Gisle Vanem
Bug: 61a08508f6 (commitcomment-40941232)
Closes #5736
This commit is contained in:
parent
81b4e99b1e
commit
abe59221fc
1 changed files with 1 additions and 3 deletions
|
|
@ -2962,9 +2962,7 @@ CURLMcode curl_multi_setopt(struct Curl_multi *multi,
|
|||
long streams = va_arg(param, long);
|
||||
if(streams < 1)
|
||||
streams = 100;
|
||||
multi->max_concurrent_streams =
|
||||
(streams > (long)INITIAL_MAX_CONCURRENT_STREAMS)?
|
||||
INITIAL_MAX_CONCURRENT_STREAMS : (unsigned int)streams;
|
||||
multi->max_concurrent_streams = curlx_sltoui(streams);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue