fix ambiguity invoking min
This commit is contained in:
parent
03a6829070
commit
dde078cdf7
|
@ -134,7 +134,7 @@ namespace libtorrent
|
|||
{
|
||||
timeout = timeout == 0
|
||||
? m_completion_timeout - total_seconds(m_read_time - m_start_time)
|
||||
: (std::min)(m_completion_timeout - total_seconds(m_read_time - m_start_time), timeout);
|
||||
: (std::min)(int(m_completion_timeout - total_seconds(m_read_time - m_start_time)), timeout);
|
||||
}
|
||||
#if defined TORRENT_ASIO_DEBUGGING
|
||||
add_outstanding_async("timeout_handler::timeout_callback");
|
||||
|
|
Loading…
Reference in New Issue