mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08: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
@ -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…
Reference in New Issue
Block a user