summary refs log tree commit diff stats
path: root/compiler/vm.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-06-25 11:17:01 +0200
committerAraq <rumpf_a@web.de>2015-06-25 11:42:27 +0200
commit2236a5be61632213025da37dda5cadb3d325fd8d (patch)
tree060e5f419056cf0a693c7d0a0d869c90c169d174 /compiler/vm.nim
parent47dce2688633fad840a2f5e4073c531f1cd640ca (diff)
downloadNim-2236a5be61632213025da37dda5cadb3d325fd8d.tar.gz
VM: use stricter notion of equality for NimNode
Diffstat (limited to 'compiler/vm.nim')
-rw-r--r--compiler/vm.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/vm.nim b/compiler/vm.nim
index 826356c68..23fd6c8b1 100644
--- a/compiler/vm.nim
+++ b/compiler/vm.nim
@@ -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)