aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLu Guanqun <guanqun.lu@gmail.com>2015-02-05 01:11:53 +0800
committerLu Guanqun <guanqun.lu@gmail.com>2015-02-05 01:13:28 +0800
commite86c4602c583696a466da5b431c8f5c8e8e98217 (patch)
tree2015325588261a3e7795fbe9f5f184e1549e8e2d /AST.cpp
parentdb263bd9d751f69f9d8d9484ff916d38b86c68c4 (diff)
downloaddexon-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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/AST.cpp b/AST.cpp
index 6028c07c..dfb677f7 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -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."));
}
}