Skip to content

Commit 86d8452

Browse files
committed
[Coloring] avoid index conflict in variable name
1 parent 99304d4 commit 86d8452

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Nonlinear/ReverseAD/Coloring/Coloring.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ function recovery_preprocess(
344344
sorted_edges[idx] = Tuple{Int,Int}[]
345345
sizehint!(sorted_edges[idx], edge_count[idx])
346346
end
347-
for i in eachindex(g.edges)
348-
u, v = g.edges[i]
347+
for k in eachindex(g.edges)
348+
u, v = g.edges[k]
349349
i = min(color[u], color[v])
350350
j = max(color[u], color[v])
351351
idx = twocolorindex[i, j]

0 commit comments

Comments
 (0)