From 43f9351177c14c554d88630b3db771b2faf11dd0 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Mon, 12 Dec 2022 11:09:10 -0800 Subject: [PATCH] Fix parens on LIKELY in basic operators We want to hint to the compiler that it's likely that the BOP is unredefined (the bit is 0). Previously we were accidentally hinting to the compiler that it was non-zero due to a misplaced parenthesis. --- internal/basic_operators.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/basic_operators.h b/internal/basic_operators.h index 8f4458a68b..aa63c455b7 100644 --- a/internal/basic_operators.h +++ b/internal/basic_operators.h @@ -58,6 +58,6 @@ MJIT_SYMBOL_EXPORT_END #define FALSE_REDEFINED_OP_FLAG (1 << 11) #define PROC_REDEFINED_OP_FLAG (1 << 12) -#define BASIC_OP_UNREDEFINED_P(op, klass) (LIKELY(ruby_vm_redefined_flag[(op)]&(klass)) == 0) +#define BASIC_OP_UNREDEFINED_P(op, klass) (LIKELY((ruby_vm_redefined_flag[(op)]&(klass)) == 0)) #endif