aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-12-12 17:45:40 +0800
committerGitHub <noreply@github.com>2017-12-12 17:45:40 +0800
commite7ed9d878e80e53da9d4cc603e6527918c5a432a (patch)
treea38d0b2352c3481c41fa33a234c0838cd05e8a19 /libsolidity/analysis
parent48c7ba72f3616a037fe3fe8cf1a490b121c416e3 (diff)
downloaddexon-solidity-e7ed9d878e80e53da9d4cc603e6527918c5a432a.tar.gz
dexon-solidity-e7ed9d878e80e53da9d4cc603e6527918c5a432a.tar.zst
dexon-solidity-e7ed9d878e80e53da9d4cc603e6527918c5a432a.zip
Re-use `commonType`
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r--libsolidity/analysis/ConstantEvaluator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/ConstantEvaluator.cpp b/libsolidity/analysis/ConstantEvaluator.cpp
index 14171b01..83f37f47 100644
--- a/libsolidity/analysis/ConstantEvaluator.cpp
+++ b/libsolidity/analysis/ConstantEvaluator.cpp
@@ -56,7 +56,7 @@ void ConstantEvaluator::endVisit(BinaryOperation const& _operation)
_operation,
Token::isCompareOp(_operation.getOperator()) ?
make_shared<BoolType>() :
- left->binaryOperatorResult(_operation.getOperator(), right)
+ commonType
);
}
}