mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #641 from axic/patch/shift-parser
Trivial shift parser fixes
This commit is contained in:
commit
d593166d66
@ -1360,6 +1360,8 @@ void ExpressionCompiler::appendShiftOperatorCode(Token::Value _operator)
|
||||
break;
|
||||
case Token::SAR:
|
||||
break;
|
||||
case Token::SHR:
|
||||
break;
|
||||
default:
|
||||
BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Unknown shift operator."));
|
||||
}
|
||||
|
@ -275,7 +275,7 @@ public:
|
||||
return Value(op + (BitOr - AssignBitOr));
|
||||
}
|
||||
|
||||
static bool isBitOp(Value op) { return (BitOr <= op && op <= SHR) || op == BitNot; }
|
||||
static bool isBitOp(Value op) { return (BitOr <= op && op <= BitAnd) || op == BitNot; }
|
||||
static bool isBooleanOp(Value op) { return (Or <= op && op <= And) || op == Not; }
|
||||
static bool isUnaryOp(Value op) { return (Not <= op && op <= Delete) || op == Add || op == Sub || op == After; }
|
||||
static bool isCountOp(Value op) { return op == Inc || op == Dec; }
|
||||
|
Loading…
Reference in New Issue
Block a user