forked from premiere/premiere-libtorrent
minor optimization in file_storage::map_file
This commit is contained in:
parent
81ccc1e2e0
commit
00c1017f16
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue