This commit is contained in:
Arvid Norberg 2008-03-21 05:41:56 +00:00
parent a8ed63494a
commit 3c9f2f685b
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ namespace libtorrent
int connection_queue::free_slots() const
{
mutex_t::scoped_lock l(m_mutex);
return m_half_open_limit == 0 ? std::numeric_limits<int>::max()
return m_half_open_limit == 0 ? (std::numeric_limits<int>::max)()
: m_half_open_limit - m_queue.size();
}