Use >> (SAR) to denote constant shifts

This commit is contained in:
Alex Beregszaszi 2016-09-08 00:26:14 +01:00
parent 59603f7b8e
commit 7ac27c957e

View File

@ -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)