Add parentheses

This commit is contained in:
Chocobo1 2015-07-11 15:23:55 +08:00
parent c69e8805e9
commit b5486fb6ce
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ namespace libtorrent
TORRENT_ASSERT(tree_node > 0);
// even numbers have their sibling to the left
// odd numbers have their sibling to the right
return tree_node + (tree_node&1?1:-1);
return tree_node + ((tree_node&1)?1:-1);
}
int merkle_num_nodes(int leafs)