aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-02-04 04:25:08 +0800
committerGav Wood <i@gavwood.com>2015-02-04 04:25:08 +0800
commit2ff4a80b6266a6bcd22ef6cbb654f90fc84f9276 (patch)
tree5a69a85a19d619453fa4283a78a47e64051ed0c9 /AST.cpp
parent04164b612c61ea2ea5c18f56600f95f03ded7235 (diff)
downloaddexon-solidity-2ff4a80b6266a6bcd22ef6cbb654f90fc84f9276.tar.gz
dexon-solidity-2ff4a80b6266a6bcd22ef6cbb654f90fc84f9276.tar.zst
dexon-solidity-2ff4a80b6266a6bcd22ef6cbb654f90fc84f9276.zip
Fixes for named-args.
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 33cb4ac3..6028c07c 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -513,7 +513,7 @@ void FunctionCall::checkTypeRequirements()
for (size_t i = 0; i < m_names.size(); i++) {
bool found = false;
for (size_t j = 0; j < parameterNames.size(); j++) {
- if (parameterNames[j] == m_names[i]) {
+ if (parameterNames[j] == *m_names[i]) {
// check type convertible
if (!m_arguments[i]->getType()->isImplicitlyConvertibleTo(*parameterTypes[j]))
BOOST_THROW_EXCEPTION(createTypeError("Invalid type for argument in function call."));