aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorritzdorf <10403309+ritzdorf@users.noreply.github.com>2018-05-28 08:25:13 +0800
committerGitHub <noreply@github.com>2018-05-28 08:25:13 +0800
commitfb08030a071f5f3a3f59fea7d68792936a7c04a6 (patch)
treec79a804e51a2866b784e659b78f727a3193119ef
parentf5f1bec75995c8e1025750df149c08e3287f7bcb (diff)
downloaddexon-solidity-fb08030a071f5f3a3f59fea7d68792936a7c04a6.tar
dexon-solidity-fb08030a071f5f3a3f59fea7d68792936a7c04a6.tar.gz
dexon-solidity-fb08030a071f5f3a3f59fea7d68792936a7c04a6.tar.bz2
dexon-solidity-fb08030a071f5f3a3f59fea7d68792936a7c04a6.tar.lz
dexon-solidity-fb08030a071f5f3a3f59fea7d68792936a7c04a6.tar.xz
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`.
-rw-r--r--docs/assembly.rst2
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) }
{