diff options
author | chriseth <c@ethdev.com> | 2016-05-10 20:57:29 +0800 |
---|---|---|
committer | VoR0220 <catalanor0220@gmail.com> | 2016-05-11 05:03:33 +0800 |
commit | d4206b7cd0bb0b8a3364c29fe097db035f308388 (patch) | |
tree | 267d5df3091710f7a1c3b54ddb8fcac5ab794015 /libsolidity/codegen/ExpressionCompiler.cpp | |
parent | 656405240e08e47fce40a2f62af93abc758bd2d2 (diff) | |
download | dexon-solidity-d4206b7cd0bb0b8a3364c29fe097db035f308388.tar.gz dexon-solidity-d4206b7cd0bb0b8a3364c29fe097db035f308388.tar.zst dexon-solidity-d4206b7cd0bb0b8a3364c29fe097db035f308388.zip |
Remove unused tests and add asserts for not implemented parts in code generation.
quick fix on christian's rational
change so that ubuntu will stop yelling
be more specific with rational declaration for Windows sake
rational in namespace correction for windows
Diffstat (limited to 'libsolidity/codegen/ExpressionCompiler.cpp')
-rw-r--r-- | libsolidity/codegen/ExpressionCompiler.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index baf587f0..a01e306e 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -281,10 +281,6 @@ bool ExpressionCompiler::visit(TupleExpression const& _tuple) bool ExpressionCompiler::visit(UnaryOperation const& _unaryOperation) { CompilerContext::LocationSetter locationSetter(m_context, _unaryOperation); - //@todo type checking and creating code for an operator should be in the same place: - // the operator should know how to convert itself and to which types it applies, so - // put this code together with "Type::acceptsBinary/UnaryOperator" into a class that - // represents the operator if (_unaryOperation.annotation().type->category() == Type::Category::RationalNumber) { m_context << _unaryOperation.annotation().type->literalValue(nullptr); @@ -1306,6 +1302,9 @@ void ExpressionCompiler::appendArithmeticOperatorCode(Token::Value _operator, Ty IntegerType const& type = dynamic_cast<IntegerType const&>(_type); bool const c_isSigned = type.isSigned(); + if (_type.category() == Type::Category::FixedPoint) + solAssert(false, "Not yet implemented - FixedPointType."); + switch (_operator) { case Token::Add: |