diff options
author | chriseth <chris@ethereum.org> | 2017-03-02 19:08:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-02 19:08:17 +0800 |
commit | 5c411b472b5830efa798309e1e7ed728acafdfa3 (patch) | |
tree | 302b4295d85b4dc12cc53d2e80b778b6fd0b5fb2 /libsolidity | |
parent | 6ac2c15c2bbcce77cf60e5a1d6bb78b924609af7 (diff) | |
parent | b832b70e1bf09087005f0e620fa5e20d57fd3310 (diff) | |
download | dexon-solidity-5c411b472b5830efa798309e1e7ed728acafdfa3.tar dexon-solidity-5c411b472b5830efa798309e1e7ed728acafdfa3.tar.gz dexon-solidity-5c411b472b5830efa798309e1e7ed728acafdfa3.tar.bz2 dexon-solidity-5c411b472b5830efa798309e1e7ed728acafdfa3.tar.lz dexon-solidity-5c411b472b5830efa798309e1e7ed728acafdfa3.tar.xz dexon-solidity-5c411b472b5830efa798309e1e7ed728acafdfa3.tar.zst dexon-solidity-5c411b472b5830efa798309e1e7ed728acafdfa3.zip |
Merge pull request #1728 from ethereum/externalfunctiontypes
Convert reference types to pointers in member function conversion.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/ast/Types.cpp | 2 |
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); } |