From 58d8abf355c1543ec6afd99189848634f51f6273 Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 19 Aug 2022 21:53:24 +0200 Subject: fix memory bug --- src/common.hff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common.hff') 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 } } -- cgit v1.2.3