diff --git a/src/torrent.cpp b/src/torrent.cpp index b017b3ce9..cfa58fd29 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -7288,7 +7288,7 @@ namespace libtorrent { time_t last = last_seen_complete(); for (std::set::const_iterator i = m_connections.begin() - , end(m_connections.end()); i != i; ++i) + , end(m_connections.end()); i != end; ++i) { last = (std::max)(last, (*i)->last_seen_complete()); }