fixed operator precedence bug
This commit is contained in:
parent
54fea1bf50
commit
27956d4dcb
|
@ -504,7 +504,7 @@ namespace libtorrent
|
||||||
// file_size.
|
// file_size.
|
||||||
size_type file_size = 0;
|
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
|
// if size is not an even multiple, this must be the tail
|
||||||
// of the file. Write the whole page and then open a new
|
// of the file. Write the whole page and then open a new
|
||||||
|
|
Loading…
Reference in New Issue