aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-03-01 23:02:36 +0800
committerchriseth <c@ethdev.com>2017-03-01 23:02:36 +0800
commita689152c4bcf21f6f1d7ffbc5e2444a4c2ff75ee (patch)
treee8145a99d2bd8bd04a73ffc99e7c972953000931 /libsolidity
parentf35b70f3a325f7dd31eb51b0cff3eaf993bfffbb (diff)
downloaddexon-solidity-a689152c4bcf21f6f1d7ffbc5e2444a4c2ff75ee.tar.gz
dexon-solidity-a689152c4bcf21f6f1d7ffbc5e2444a4c2ff75ee.tar.zst
dexon-solidity-a689152c4bcf21f6f1d7ffbc5e2444a4c2ff75ee.zip
Convert reference types to pointers in member function conversion.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/ast/Types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp
index 99d6f4a2..7f267cc9 100644
--- a/libsolidity/ast/Types.cpp
+++ b/libsolidity/ast/Types.cpp
@@ -2493,7 +2493,7 @@ FunctionTypePointer FunctionType::asMemberFunction(bool _inLibrary, bool _bound)
{
auto refType = dynamic_cast<ReferenceType const*>(t.get());
if (refType && refType->location() == DataLocation::CallData)
- parameterTypes.push_back(refType->copyForLocation(DataLocation::Memory, false));
+ parameterTypes.push_back(refType->copyForLocation(DataLocation::Memory, true));
else
parameterTypes.push_back(t);
}