We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee440df commit bcccb74Copy full SHA for bcccb74
compiler/trees.nim
@@ -64,7 +64,7 @@ proc sameTree*(a, b: PNode): bool =
64
result = a.sym.name.id == b.sym.name.id
65
of nkIdent: result = a.ident.id == b.ident.id
66
of nkCharLit..nkUInt64Lit: result = a.intVal == b.intVal
67
- of nkFloatLit..nkFloat64Lit: result = a.floatVal == b.floatVal
+ of nkFloatLit..nkFloat64Lit: result = cast[uint64](a.floatVal) == cast[uint64](b.floatVal)
68
of nkStrLit..nkTripleStrLit: result = a.strVal == b.strVal
69
of nkEmpty, nkNilLit, nkType: result = true
70
else:
0 commit comments