Skip to content

Commit 5b93b8b

Browse files
Fix 32-bit build, by using same types inside ::max
Add static cast to size_t of unsigned constant inside ::max. Currently cpp doesn't have built-in literal fir size_t type. Relates-To: OLPSUP-8752 Signed-off-by: Diachenko Mykahilo <[email protected]>
1 parent 5f1d7c9 commit 5b93b8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ static curl_code SslctxFunction(CURL* curl, void* sslctx, void*) {
222222

223223
NetworkCurl::NetworkCurl(size_t max_requests_count)
224224
: handles_(max_requests_count),
225-
static_handle_count_(std::max(1lu, max_requests_count / 4)) {
225+
static_handle_count_(
226+
std::max(static_cast<size_t>(1u), max_requests_count / 4)) {
226227
OLP_SDK_LOG_TRACE(kLogTag, "Created NetworkCurl with address="
227228
<< this
228229
<< ", handles_count=" << max_requests_count);

0 commit comments

Comments
 (0)