Skip to content

Commit

Permalink
use items iterator in cyclicTreeAux
Browse files Browse the repository at this point in the history
Co-authored-by: zerbina <100542850+zerbina@users.noreply.github.com>
  • Loading branch information
Clyybber and zerbina authored Mar 8, 2024
1 parent 1f18c9a commit a0f7ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/utils/astrepr.nim
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ proc cyclicTreeAux(n: PNode, visited: var seq[PNode], count: var int): bool =
else:
n

for nSon in nWithSons.sons:
for nSon in nWithSons.items:
if cyclicTreeAux(nSon, visited, count):
return true

Expand Down

0 comments on commit a0f7ab6

Please sign in to comment.