From fb08030a071f5f3a3f59fea7d68792936a7c04a6 Mon Sep 17 00:00:00 2001 From: ritzdorf <10403309+ritzdorf@users.noreply.github.com> Date: Mon, 28 May 2018 02:25:13 +0200 Subject: [PATCH] Array Length mistankingly taken as Offset The array length was directly taken as an offset without the necessary multiplication with `0x20`. --- docs/assembly.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assembly.rst b/docs/assembly.rst index 443cb7dac..f7b721ab7 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) } {