minor optimization in file_storage::map_file

This commit is contained in:
Arvid Norberg 2012-11-29 06:44:03 +00:00
parent 81ccc1e2e0
commit 00c1017f16
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ namespace libtorrent
{
TORRENT_ASSERT(file_index < num_files());
TORRENT_ASSERT(file_index >= 0);
size_type offset = file_offset + at(file_index).offset;
size_type offset = file_offset + this->file_offset(file_index);
peer_request ret;
ret.piece = int(offset / piece_length());