fix ambiguity invoking min

This commit is contained in:
Arvid Norberg 2013-11-01 23:13:53 +00:00
parent 03a6829070
commit dde078cdf7
1 changed files with 1 additions and 1 deletions

View File

@ -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");