fixed integer overflow in file_storage::map_file

This commit is contained in:
Arvid Norberg 2012-02-21 07:43:25 +00:00
parent e071bf113e
commit 6627ae86d6
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ namespace libtorrent
peer_request ret;
ret.piece = int(offset / piece_length());
ret.start = int(offset - ret.piece * piece_length());
ret.start = int(offset % piece_length());
ret.length = size;
return ret;
}