diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-04-30 07:13:03 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-06-08 02:39:05 +0800 |
commit | f8ccf3eebfa337d9a014c46751eb4ed8331321a2 (patch) | |
tree | b4635801267907f9394cfae39f80736181f056ba /libsolidity/parsing | |
parent | e97ac4fb4919b9008bd3534cd4b915b7fe70b920 (diff) | |
download | dexon-solidity-f8ccf3eebfa337d9a014c46751eb4ed8331321a2.tar.gz dexon-solidity-f8ccf3eebfa337d9a014c46751eb4ed8331321a2.tar.zst dexon-solidity-f8ccf3eebfa337d9a014c46751eb4ed8331321a2.zip |
Fix Token::isBitOp to exclude shift operators
Diffstat (limited to 'libsolidity/parsing')
-rw-r--r-- | libsolidity/parsing/Token.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/parsing/Token.h b/libsolidity/parsing/Token.h index f28df8bf..703e88f6 100644 --- a/libsolidity/parsing/Token.h +++ b/libsolidity/parsing/Token.h @@ -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; } |