From 7ac27c957ed061be4f9dafeff686c07cc693d65b Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 8 Sep 2016 00:26:14 +0100 Subject: Use >> (SAR) to denote constant shifts --- libsolidity/ast/Types.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 3f13d62d..eb98047c 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -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) -- cgit