diff options
author | chriseth <c@ethdev.com> | 2015-10-01 20:53:45 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-10-01 22:50:11 +0800 |
commit | 6161ec96ff4a449d6fffa3d1e54c3fa38911c2bb (patch) | |
tree | 4860eb391362a98e8346ae5b80850970dfedbd59 /libsolidity/Compiler.h | |
parent | 5f6c3cdf5414af457569041d1fdf6caa4cf9a82c (diff) | |
download | dexon-solidity-6161ec96ff4a449d6fffa3d1e54c3fa38911c2bb.tar dexon-solidity-6161ec96ff4a449d6fffa3d1e54c3fa38911c2bb.tar.gz dexon-solidity-6161ec96ff4a449d6fffa3d1e54c3fa38911c2bb.tar.bz2 dexon-solidity-6161ec96ff4a449d6fffa3d1e54c3fa38911c2bb.tar.lz dexon-solidity-6161ec96ff4a449d6fffa3d1e54c3fa38911c2bb.tar.xz dexon-solidity-6161ec96ff4a449d6fffa3d1e54c3fa38911c2bb.tar.zst dexon-solidity-6161ec96ff4a449d6fffa3d1e54c3fa38911c2bb.zip |
Bugfix in calldata unpacker.
The offset was not specified correctly if memory activity preceded the
unpacker.
Diffstat (limited to 'libsolidity/Compiler.h')
-rw-r--r-- | libsolidity/Compiler.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libsolidity/Compiler.h b/libsolidity/Compiler.h index 7b7cffcf..c3bb838a 100644 --- a/libsolidity/Compiler.h +++ b/libsolidity/Compiler.h @@ -85,12 +85,8 @@ private: void appendFunctionSelector(ContractDefinition const& _contract); /// Creates code that unpacks the arguments for the given function represented by a vector of TypePointers. /// From memory if @a _fromMemory is true, otherwise from call data. - /// Expects source offset on the stack. - void appendCalldataUnpacker( - TypePointers const& _typeParameters, - bool _fromMemory = false, - u256 _startOffset = u256(-1) - ); + /// Expects source offset on the stack, which is removed. + void appendCalldataUnpacker(TypePointers const& _typeParameters, bool _fromMemory = false); void appendReturnValuePacker(TypePointers const& _typeParameters); void registerStateVariables(ContractDefinition const& _contract); |