diff options
author | chriseth <chris@ethereum.org> | 2018-05-02 21:56:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-02 21:56:59 +0800 |
commit | 8debded7431cb852bd66edc8ebb615cb39f95231 (patch) | |
tree | 8cd4db92d6d7b5aa7c31995ff9a5026c4e9312a3 /libsolidity/ast | |
parent | 42289b642ff12d9275dedf10c257cfec8295feed (diff) | |
download | dexon-solidity-8debded7431cb852bd66edc8ebb615cb39f95231.tar.gz dexon-solidity-8debded7431cb852bd66edc8ebb615cb39f95231.tar.zst dexon-solidity-8debded7431cb852bd66edc8ebb615cb39f95231.zip |
Revert "BREAKING: Bool variables should not allow arithmetic comparison"
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/Types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index f4198016..11d7160c 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -1359,7 +1359,7 @@ TypePointer BoolType::binaryOperatorResult(Token::Value _operator, TypePointer c { if (category() != _other->category()) return TypePointer(); - if (_operator == Token::Equal || _operator == Token::NotEqual || _operator == Token::And || _operator == Token::Or) + if (Token::isCompareOp(_operator) || _operator == Token::And || _operator == Token::Or) return _other; else return TypePointer(); |