From 2236a5be61632213025da37dda5cadb3d325fd8d Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 25 Jun 2015 11:17:01 +0200 Subject: [PATCH] VM: use stricter notion of equality for NimNode --- compiler/vm.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/vm.nim b/compiler/vm.nim index 826356c68d..23fd6c8b10 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)