Skip to content

Commit

Permalink
Off by one...
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed Oct 10, 2024
1 parent 1ea1ed6 commit fc46a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/resolver_method.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fc46a0f

Please sign in to comment.