Skip to content

Commit

Permalink
Fix max
Browse files Browse the repository at this point in the history
  • Loading branch information
garethsb committed Mar 31, 2020
1 parent 96835a2 commit 1301c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Release/src/http/client/http_client_winhttp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ class winhttp_client final : public _http_client_communicator
{
// Set timeouts.
const int milliseconds =
std::max(static_cast<int>(config.timeout<std::chrono::milliseconds>().count()), 1);
(std::max)(static_cast<int>(config.timeout<std::chrono::milliseconds>().count()), 1);
if (!WinHttpSetTimeouts(m_hSession, milliseconds, milliseconds, milliseconds, milliseconds))
{
return GetLastError();
Expand Down

0 comments on commit 1301c32

Please sign in to comment.