Skip to content

Commit 6ef5e85

Browse files
committed
Fix OneTo ordering bug introduced in last commit.
1 parent bf35864 commit 6ef5e85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graphs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,8 @@ function oneto_loop!(ls::LoopSet, r::Expr, itersym::Symbol)::Loop
538538
otN isa Expr && maybestatic!(otN)
539539
N = gensym!(ls, "loop" * string(itersym))
540540
rangename = gensym!(ls, "range");
541-
pushprepreamble!(ls, Expr(:(=), rangename, Expr(:call, :(:), staticexpr(1), N)))
542541
pushprepreamble!(ls, Expr(:(=), N, otN))
542+
pushprepreamble!(ls, Expr(:(=), rangename, Expr(:call, :(:), staticexpr(1), N)))
543543
Loop(itersym, 1, N, rangename, N)
544544
end
545545
loop

0 commit comments

Comments
 (0)