mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Support bitshifting in variables
This commit is contained in:
committed by
chriseth
parent
d0542f0e36
commit
b8b4f5e9f9
@@ -347,6 +347,11 @@ TypePointer IntegerType::binaryOperatorResult(Token::Value _operator, TypePointe
|
||||
// All integer types can be compared
|
||||
if (Token::isCompareOp(_operator))
|
||||
return commonType;
|
||||
// Disable >>> here.
|
||||
if (_operator == Token::SHR)
|
||||
return TypePointer();
|
||||
if (Token::isShiftOp(_operator) && !isAddress()) // && !_other->isAddress())
|
||||
return shared_from_this();
|
||||
if (Token::isBooleanOp(_operator))
|
||||
return TypePointer();
|
||||
if (auto intType = dynamic_pointer_cast<IntegerType const>(commonType))
|
||||
|
||||
Reference in New Issue
Block a user