mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fix string comparision bug revealed by previous test case
This is due to refactoring of m_names using ASTPointer.
This commit is contained in:
parent
db263bd9d7
commit
e86c4602c5
2
AST.cpp
2
AST.cpp
@ -505,7 +505,7 @@ void FunctionCall::checkTypeRequirements()
|
|||||||
// check duplicate names
|
// check duplicate names
|
||||||
for (size_t i = 0; i < m_names.size(); i++) {
|
for (size_t i = 0; i < m_names.size(); i++) {
|
||||||
for (size_t j = i + 1; j < m_names.size(); j++) {
|
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."));
|
BOOST_THROW_EXCEPTION(createTypeError("Duplicate named argument."));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user