mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use >> (SAR) to denote constant shifts
This commit is contained in:
parent
59603f7b8e
commit
7ac27c957e
@ -718,7 +718,9 @@ TypePointer RationalNumberType::binaryOperatorResult(Token::Value _operator, Typ
|
||||
value = m_value.numerator() * pow(bigint(2), exponent);
|
||||
break;
|
||||
}
|
||||
case Token::SHR:
|
||||
// NOTE: we're using >> (SAR) to denote right shifting. The type of the LValue
|
||||
// determines the resulting type and the type of shift (SAR or SHR).
|
||||
case Token::SAR:
|
||||
{
|
||||
using boost::multiprecision::pow;
|
||||
if (fractional)
|
||||
|
Loading…
Reference in New Issue
Block a user