diff --git a/src/smart_ban.cpp b/src/smart_ban.cpp index dfdf585ab..d7d3c2e41 100644 --- a/src/smart_ban.cpp +++ b/src/smart_ban.cpp @@ -182,7 +182,7 @@ namespace libtorrent { namespace // there is no peer with this address anymore if (range.first == range.second) return; - policy::peer* p = (policy::peer*)&(*range.first); + policy::peer* p = (*range.first); block_entry e = {p, crc.final()}; std::map::iterator i = m_block_crc.lower_bound(b);