use & instead of %

This commit is contained in:
Arvid Norberg 2009-01-15 04:25:07 +00:00
parent 3f94cc8857
commit 630601aedf
1 changed files with 1 additions and 1 deletions

View File

@ -657,7 +657,7 @@ namespace libtorrent
{
// copy from the cache and update the last use timestamp
int block = j.offset / m_block_size;
int block_offset = j.offset % m_block_size;
int block_offset = j.offset & (m_block_size-1);
int buffer_offset = 0;
int size = j.buffer_size;
if (p->blocks[block] == 0)