about summary refs log tree commit diff
path: root/tvix/eval/src/vm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/vm.rs')
-rw-r--r--tvix/eval/src/vm.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs
index a0eb7d8ad2ee..52819a6e210b 100644
--- a/tvix/eval/src/vm.rs
+++ b/tvix/eval/src/vm.rs
@@ -265,8 +265,9 @@ impl<'o> VM<'o> {
                 OpCode::OpEqual => {
                     let v2 = self.pop();
                     let v1 = self.pop();
+                    let res = fallible!(self, v1.nix_eq(&v2));
 
-                    self.push(Value::Bool(v1 == v2))
+                    self.push(Value::Bool(res))
                 }
 
                 OpCode::OpLess => cmp_op!(self, <),