aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-15 21:54:41 +0800
committerChristian <c@ethdev.com>2014-10-16 00:41:44 +0800
commitd557fbac9c39e6e2b40ff4c4a3093be2f08df602 (patch)
tree3c5acd40804f62172bfc7f7ad6a30c30ed3d14e3 /AST.cpp
parentdf142782bc3a1435f70d9f5f4c8e04ae8d7e1678 (diff)
downloaddexon-solidity-d557fbac9c39e6e2b40ff4c4a3093be2f08df602.tar.gz
dexon-solidity-d557fbac9c39e6e2b40ff4c4a3093be2f08df602.tar.zst
dexon-solidity-d557fbac9c39e6e2b40ff4c4a3093be2f08df602.zip
Some fixes for the type system, should be quite usable now.
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/AST.cpp b/AST.cpp
index 926f1c68..4fb4c770 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -354,7 +354,7 @@ ptr<Type> BinaryOperation::checkTypeRequirements()
} else {
BOOST_ASSERT(Token::IsBinaryOp(m_operator));
m_type = m_commonType;
- if (!m_commonType->acceptsBinaryOperator(Token::AssignmentToBinaryOp(m_operator)))
+ if (!m_commonType->acceptsBinaryOperator(m_operator))
BOOST_THROW_EXCEPTION(TypeError() << errinfo_comment("Operator not compatible with type."));
}
return m_type;