mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
removed get prefix
style fixes
This commit is contained in:
+10
-4
@@ -817,10 +817,16 @@ void BinaryOperation::checkTypeRequirements(TypePointers const*)
|
||||
m_right->checkTypeRequirements(nullptr);
|
||||
m_commonType = m_left->type()->binaryOperatorResult(m_operator, m_right->type());
|
||||
if (!m_commonType)
|
||||
BOOST_THROW_EXCEPTION(createTypeError("Operator " + string(Token::toString(m_operator)) +
|
||||
" not compatible with types " +
|
||||
m_left->type()->toString() + " and " +
|
||||
m_right->type()->toString()));
|
||||
BOOST_THROW_EXCEPTION(
|
||||
createTypeError(
|
||||
"Operator " +
|
||||
string(Token::toString(m_operator)) +
|
||||
" not compatible with types " +
|
||||
m_left->type()->toString() +
|
||||
" and " +
|
||||
m_right->type()->toString()
|
||||
)
|
||||
);
|
||||
m_type = Token::isCompareOp(m_operator) ? make_shared<BoolType>() : m_commonType;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user