forked from premiere/premiere-libtorrent
fixed bug in storage::hash_for_slot
This commit is contained in:
parent
bec481acdf
commit
8273d67a42
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue