From fc46a0fbfdca6c9060bc044872e15b437cc55f2d Mon Sep 17 00:00:00 2001 From: Florian Loitsch Date: Thu, 10 Oct 2024 14:56:47 +0200 Subject: [PATCH] Off by one... --- src/compiler/resolver_method.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/resolver_method.cc b/src/compiler/resolver_method.cc index 23d828e17..271629498 100644 --- a/src/compiler/resolver_method.cc +++ b/src/compiler/resolver_method.cc @@ -4251,7 +4251,7 @@ ir::Expression* MethodResolver::_binary_operator(ast::Binary* node, right_args, node->selection_range()); - ASSERT(INVOKE_GTE - INVOKE_EQ == 5); // ==, <, <=, >, >= + ASSERT(INVOKE_GTE - INVOKE_EQ == 4); // ==, <, <=, >, >= // It is critical that we go through the EQ opcode, as it tests for identity and // null. This must happen even if we have optimizations disabled. // Similarly, we must go through the comparison opcodes, as they handle complicate