fix typo in previous check-in

This commit is contained in:
Arvid Norberg 2010-02-21 09:03:56 +00:00
parent 59deff7a44
commit 278c1f91c0
1 changed files with 2 additions and 2 deletions

View File

@ -1652,14 +1652,14 @@ namespace libtorrent
} }
jl.unlock(); jl.unlock();
mutex_t::scoped_lock l(m_piece_mutex); mutex::scoped_lock l(m_piece_mutex);
for (cache_t::iterator i = m_read_pieces.begin(); for (cache_t::iterator i = m_read_pieces.begin();
i != m_read_pieces.end();) i != m_read_pieces.end();)
{ {
if (i->storage == j.storage) if (i->storage == j.storage)
{ {
free_piece(*i, l); free_piece(const_cast<cached_piece_entry&>(*i), l);
i = m_read_pieces.erase(i); i = m_read_pieces.erase(i);
} }
else else