diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-27 20:04:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-27 20:04:37 +0800 |
commit | 3f783c8dad7a143d364f75ddac839aac2eeece1a (patch) | |
tree | 9df24003560a05a73f1cdb1f2c6a2c28105fb669 /libsolidity/codegen/ContractCompiler.cpp | |
parent | a27b23bacb60a6902547fb99b9f7a2df8bb014cd (diff) | |
parent | 204214f0700179e3d8fa97c77d4f92acd349f015 (diff) | |
download | dexon-solidity-3f783c8dad7a143d364f75ddac839aac2eeece1a.tar dexon-solidity-3f783c8dad7a143d364f75ddac839aac2eeece1a.tar.gz dexon-solidity-3f783c8dad7a143d364f75ddac839aac2eeece1a.tar.bz2 dexon-solidity-3f783c8dad7a143d364f75ddac839aac2eeece1a.tar.lz dexon-solidity-3f783c8dad7a143d364f75ddac839aac2eeece1a.tar.xz dexon-solidity-3f783c8dad7a143d364f75ddac839aac2eeece1a.tar.zst dexon-solidity-3f783c8dad7a143d364f75ddac839aac2eeece1a.zip |
Merge pull request #2975 from ethereum/encode-memory
Split encodeToMemory into packedEncode and abiEncode
Diffstat (limited to 'libsolidity/codegen/ContractCompiler.cpp')
-rw-r--r-- | libsolidity/codegen/ContractCompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp index 92782b8d..429db532 100644 --- a/libsolidity/codegen/ContractCompiler.cpp +++ b/libsolidity/codegen/ContractCompiler.cpp @@ -421,7 +421,7 @@ void ContractCompiler::appendReturnValuePacker(TypePointers const& _typeParamete utils.fetchFreeMemoryPointer(); //@todo optimization: if we return a single memory array, there should be enough space before // its data to add the needed parts and we avoid a memory copy. - utils.encodeToMemory(_typeParameters, _typeParameters, true, false, _isLibrary); + utils.abiEncode(_typeParameters, _typeParameters, _isLibrary); utils.toSizeAfterFreeMemoryPointer(); m_context << Instruction::RETURN; } |