diff options
author | ritzdorf <10403309+ritzdorf@users.noreply.github.com> | 2018-05-28 08:25:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-28 08:25:13 +0800 |
commit | fb08030a071f5f3a3f59fea7d68792936a7c04a6 (patch) | |
tree | c79a804e51a2866b784e659b78f727a3193119ef /docs/assembly.rst | |
parent | f5f1bec75995c8e1025750df149c08e3287f7bcb (diff) | |
download | dexon-solidity-fb08030a071f5f3a3f59fea7d68792936a7c04a6.tar.gz dexon-solidity-fb08030a071f5f3a3f59fea7d68792936a7c04a6.tar.zst dexon-solidity-fb08030a071f5f3a3f59fea7d68792936a7c04a6.zip |
Array Length mistankingly taken as Offset
The array length was directly taken as an offset without the necessary multiplication with `0x20`.
Diffstat (limited to 'docs/assembly.rst')
-rw-r--r-- | docs/assembly.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/assembly.rst b/docs/assembly.rst index 443cb7da..f7b721ab 100644 --- a/docs/assembly.rst +++ b/docs/assembly.rst @@ -115,7 +115,7 @@ you really know what you are doing. // Iterate until the bound is not met. for - { let end := add(data, len) } + { let end := add(data, mul(len, 0x20)) } lt(data, end) { data := add(data, 0x20) } { |