mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add parentheses for readability.
This commit is contained in:
parent
d87eb97895
commit
b976d53e87
@ -203,7 +203,7 @@ AssemblyItems ComputeMethod::findRepresentation(u256 const& _value)
|
||||
u256 powerOfTwo = u256(1) << bits;
|
||||
u256 upperPart = _value >> bits;
|
||||
bigint lowerPart = _value & (powerOfTwo - 1);
|
||||
if (powerOfTwo - lowerPart < lowerPart)
|
||||
if ((powerOfTwo - lowerPart) < lowerPart)
|
||||
{
|
||||
lowerPart = lowerPart - powerOfTwo; // make it negative
|
||||
upperPart++;
|
||||
|
Loading…
Reference in New Issue
Block a user