fixed policy::peer cast bug (introduced when optimizing the peer allocation)

This commit is contained in:
Arvid Norberg 2009-05-13 16:14:20 +00:00
parent 7fb7ebfa10
commit c8066aabd8
1 changed files with 1 additions and 1 deletions

View File

@ -1181,7 +1181,7 @@ namespace aux {
for (policy::iterator j = p.begin_peer() for (policy::iterator j = p.begin_peer()
, end(p.end_peer()); j != end; ++j) , end(p.end_peer()); j != end; ++j)
{ {
policy::peer* pe = (policy::peer*)&(*j); policy::peer* pe = *j;
if (pe->last_optimistically_unchoked < four_hours) if (pe->last_optimistically_unchoked < four_hours)
pe->last_optimistically_unchoked = 0; pe->last_optimistically_unchoked = 0;