fixed operator precedence bug

This commit is contained in:
Arvid Norberg 2009-01-11 09:59:05 +00:00
parent 54fea1bf50
commit 27956d4dcb
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ namespace libtorrent
// file_size.
size_type file_size = 0;
if (size & (m_page_size-1) != 0)
if ((size & (m_page_size-1)) != 0)
{
// if size is not an even multiple, this must be the tail
// of the file. Write the whole page and then open a new