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| {