From 22ca2583381b9ab1e7ac91b4cfc1d59e4ea7223f Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Wed, 22 Jan 2025 20:04:23 -0600 Subject: [PATCH] bugfix: auto-cast causing bad inferred types --- core/operations.onyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/operations.onyx b/core/operations.onyx index 81f37023..35389667 100644 --- a/core/operations.onyx +++ b/core/operations.onyx @@ -59,7 +59,7 @@ __for_expansion :: macro (_s: [] $T, $flags: __For_Expansion_Flags, $body: Code) defer i += 1 v := data[i] - #unquote body(v, ~~i) #skip_scope(2) + #unquote body(v, i) #skip_scope(2) } } @@ -74,7 +74,7 @@ __for_expansion :: macro (_s: [] $T, $flags: __For_Expansion_Flags, $body: Code) defer i += 1 v := &data[i] - #unquote body(v, ~~i) #skip_scope(2) + #unquote body(v, i) #skip_scope(2) } }