diff options
author | chriseth <c@ethdev.com> | 2015-03-12 01:09:35 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-03-17 01:07:14 +0800 |
commit | fff3f98f58345d45dcf518d7dccbfa0d0a4e67b7 (patch) | |
tree | fd00609ec95fd240a8a41efcd9461b60ea15b142 /Types.cpp | |
parent | c34e1da6dbc8c66dcdfcb0f09ee0cf8815473124 (diff) | |
download | dexon-solidity-fff3f98f58345d45dcf518d7dccbfa0d0a4e67b7.tar.gz dexon-solidity-fff3f98f58345d45dcf518d7dccbfa0d0a4e67b7.tar.zst dexon-solidity-fff3f98f58345d45dcf518d7dccbfa0d0a4e67b7.zip |
Enlarge storage references to two stack slots.
Diffstat (limited to 'Types.cpp')
-rw-r--r-- | Types.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -644,6 +644,9 @@ unsigned ArrayType::getSizeOnStack() const if (m_location == Location::CallData) // offset [length] (stack top) return 1 + (isDynamicallySized() ? 1 : 0); + else if (m_location == Location::Storage) + // storage_key storage_offset + return 2; else // offset return 1; |