From dadc37f2d04a3c8c15643f6f29c0ae64ef8eb74f Mon Sep 17 00:00:00 2001 From: ReversedCausality Date: Sat, 16 Mar 2024 17:38:50 +0000 Subject: [PATCH] Bugfix. --- luisa_compute/src/lang/control_flow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luisa_compute/src/lang/control_flow.rs b/luisa_compute/src/lang/control_flow.rs index ca39dfd..49ff512 100644 --- a/luisa_compute/src/lang/control_flow.rs +++ b/luisa_compute/src/lang/control_flow.rs @@ -310,7 +310,7 @@ pub fn for_unrolled(iter: I, mut body: impl FnMut(I::Item)) { } } -pub fn for_range(r: R, body: impl FnMut(Expr)) { +pub fn for_range(r: R, mut body: impl FnMut(Expr)) { let start = r.start().get(); let end = r.end().get(); let inc = |v: NodeRef| {