Skip to content

Commit

Permalink
Fix cmpNodeCnst ignoring comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Clyybber committed Mar 12, 2024
1 parent 32a8dbc commit 1003ac9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/vm/vmgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -816,8 +816,7 @@ func cmpNodeCnst(a, b: PNode): bool {.inline.} =
relaxKindCheck = false,
symCheck = a.sym == b.sym,
floatCheck = cmpFloatRep(a.floatVal, b.floatVal),
commentCheck = true,
# comment equality shouldn't be ignored here (no test because currently only nkSym NimNode literals are created)
commentCheck = a.comment == b.comment,
typeCheck = a.typ == b.typ
)

Expand Down

0 comments on commit 1003ac9

Please sign in to comment.