Merge pull request #1728 from ethereum/externalfunctiontypes

Convert reference types to pointers in member function conversion.
This commit is contained in:
chriseth
2017-03-02 12:08:17 +01:00
committed by GitHub
3 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -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);
}