fixed incorrect assert in torrent::we_have

This commit is contained in:
Arvid Norberg 2009-08-26 02:42:42 +00:00
parent 6078dd06b0
commit 1e45b85c34
1 changed files with 1 additions and 1 deletions

View File

@ -1913,7 +1913,7 @@ namespace libtorrent
{
size_type file_offset = off - f->offset;
TORRENT_ASSERT(f != m_torrent_file->files().end());
TORRENT_ASSERT(file_offset < f->size);
TORRENT_ASSERT(file_offset <= f->size);
int add = (std::min)(f->size - file_offset, (size_type)size);
m_file_progress[file_index] += add;