Skip to content

Commit

Permalink
Reapply "(fix) atom: invalid iteration"
Browse files Browse the repository at this point in the history
This reverts commit 740ae51.
  • Loading branch information
xTrayambak committed Jul 25, 2024
1 parent 3f668de commit d490e53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mirage/atom.nim
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ proc hash*(atom: MAtom): Hash {.inline.} =
of Integer:
h = h !& atom.integer.hash()
of Object:
for k, v in atom.fields:
for k, v in atom.objFields:
h = h !& k.hash()
h = h !& v.hash()

h = h !& atom.values.hash()
h = h !& atom.objValues.hash()
of Sequence:
h = h !& atom.sequence.hash()
h = h !& atom.lCap.hash()
Expand Down

0 comments on commit d490e53

Please sign in to comment.