diff options
author | Lu Guanqun <guanqun.lu@gmail.com> | 2015-02-05 01:11:53 +0800 |
---|---|---|
committer | Lu Guanqun <guanqun.lu@gmail.com> | 2015-02-05 01:13:28 +0800 |
commit | e86c4602c583696a466da5b431c8f5c8e8e98217 (patch) | |
tree | 2015325588261a3e7795fbe9f5f184e1549e8e2d /AST.cpp | |
parent | db263bd9d751f69f9d8d9484ff916d38b86c68c4 (diff) | |
download | dexon-solidity-e86c4602c583696a466da5b431c8f5c8e8e98217.tar dexon-solidity-e86c4602c583696a466da5b431c8f5c8e8e98217.tar.gz dexon-solidity-e86c4602c583696a466da5b431c8f5c8e8e98217.tar.bz2 dexon-solidity-e86c4602c583696a466da5b431c8f5c8e8e98217.tar.lz dexon-solidity-e86c4602c583696a466da5b431c8f5c8e8e98217.tar.xz dexon-solidity-e86c4602c583696a466da5b431c8f5c8e8e98217.tar.zst dexon-solidity-e86c4602c583696a466da5b431c8f5c8e8e98217.zip |
fix string comparision bug revealed by previous test case
This is due to refactoring of m_names using ASTPointer.
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -505,7 +505,7 @@ void FunctionCall::checkTypeRequirements() // check duplicate names for (size_t i = 0; i < m_names.size(); i++) { for (size_t j = i + 1; j < m_names.size(); j++) { - if (m_names[i] == m_names[j]) + if (*m_names[i] == *m_names[j]) BOOST_THROW_EXCEPTION(createTypeError("Duplicate named argument.")); } } |