diff options
| author | 2022-08-19 21:53:24 +0200 | |
|---|---|---|
| committer | 2022-08-19 21:53:24 +0200 | |
| commit | 58d8abf355c1543ec6afd99189848634f51f6273 (patch) | |
| tree | 4b5cc6827480023e268549c316eb43a4ad052027 /src/common.hff | |
| parent | 21151f70a82f10d30b74f2965c19fab78adca430 (diff) | |
fix memory bug
Diffstat (limited to 'src/common.hff')
| -rw-r--r-- | src/common.hff | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common.hff b/src/common.hff index 187fbf3..6b63334 100644 --- a/src/common.hff +++ b/src/common.hff @@ -18,7 +18,7 @@ defmacro assert { defmacro foreach(x, i, a, &body) [ { let $a = a; - for let i = 0; i < $a.#len; ++i { + for let i = 0z; i < $a.#len; ++i { let x = $a[i]; { body } } @@ -28,7 +28,7 @@ defmacro foreach(x, i, a, &body) [ defmacro foreach_ptr(x, i, a, &body) [ { let $a = a; - for let i = 0; i < $a.#len; ++i { + for let i = 0z; i < $a.#len; ++i { let x = &$a[i]; { body } } |