fix warning

This commit is contained in:
arvidn 2016-07-09 13:49:46 -04:00
parent 3abd024ecc
commit 5be93752de
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ boost::shared_ptr<torrent_info> create_torrent(file_storage& fs)
// calculate the hash for all pieces
int const num = t.num_pieces();
sha1_hash ph = hasher(&piece[0], piece.size()).final();
sha1_hash ph = hasher(&piece[0], int(piece.size())).final();
for (int i = 0; i < num; ++i)
t.set_hash(i, ph);