fixed bug in storage::hash_for_slot

This commit is contained in:
Arvid Norberg 2009-09-05 14:20:00 +00:00
parent bec481acdf
commit 8273d67a42
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ namespace libtorrent
for (int i = 0; i < num_blocks; ++i)
{
if (small_hash && small_piece_size < block_size)
if (small_hash && small_piece_size <= block_size)
{
ph.h.update((char const*)bufs[i].iov_base, small_piece_size);
*small_hash = hasher(ph.h).final();