VM: use stricter notion of equality for NimNode
This commit is contained in:
parent
47dce26886
commit
2236a5be61
1 changed files with 2 additions and 1 deletions
|
|
@ -690,7 +690,8 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
|
|||
of opcEqNimrodNode:
|
||||
decodeBC(rkInt)
|
||||
regs[ra].intVal =
|
||||
ord(exprStructuralEquivalent(regs[rb].node, regs[rc].node))
|
||||
ord(exprStructuralEquivalent(regs[rb].node, regs[rc].node,
|
||||
strictSymEquality=true))
|
||||
of opcXor:
|
||||
decodeBC(rkInt)
|
||||
regs[ra].intVal = ord(regs[rb].intVal != regs[rc].intVal)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue