diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-10 16:52:19 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-10 16:52:19 +0800 |
commit | 82c5fb32458309866033e12b8930a450753bc0bd (patch) | |
tree | 1657a824ff350199cb7454944abc280e35d61f28 /ExpressionCompiler.cpp | |
parent | 943407e0fee2999ddeadb12fce417885d3fa59b7 (diff) | |
download | dexon-solidity-82c5fb32458309866033e12b8930a450753bc0bd.tar.gz dexon-solidity-82c5fb32458309866033e12b8930a450753bc0bd.tar.zst dexon-solidity-82c5fb32458309866033e12b8930a450753bc0bd.zip |
Addressing issues in Enum style fix
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r-- | ExpressionCompiler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp index 63f5a774..ac17d65d 100644 --- a/ExpressionCompiler.cpp +++ b/ExpressionCompiler.cpp @@ -483,7 +483,7 @@ void ExpressionCompiler::endVisit(MemberAccess const& _memberAccess) m_currentLValue.retrieveValueIfLValueNotRequested(_memberAccess); break; } - case Type::Category::Type: + case Type::Category::TypeType: { TypeType const& type = dynamic_cast<TypeType const&>(*_memberAccess.getExpression().getType()); if (type.getMembers().getMemberType(member)) @@ -583,10 +583,10 @@ void ExpressionCompiler::appendAndOrOperatorCode(BinaryOperation const& _binaryO void ExpressionCompiler::appendCompareOperatorCode(Token::Value _operator, Type const& _type) { - if (_operator == Token::Equals || _operator == Token::NotEquals) + if (_operator == Token::Equal || _operator == Token::NotEqual) { m_context << eth::Instruction::EQ; - if (_operator == Token::NotEquals) + if (_operator == Token::NotEqual) m_context << eth::Instruction::ISZERO; } else @@ -596,11 +596,11 @@ void ExpressionCompiler::appendCompareOperatorCode(Token::Value _operator, Type switch (_operator) { - case Token::GreaterThanOrEquals: + case Token::GreaterThanOrEqual: m_context << (c_isSigned ? eth::Instruction::SLT : eth::Instruction::LT) << eth::Instruction::ISZERO; break; - case Token::LessThanOrEquals: + case Token::LessThanOrEqual: m_context << (c_isSigned ? eth::Instruction::SGT : eth::Instruction::GT) << eth::Instruction::ISZERO; break; |