summaryrefslogtreecommitdiff
path: root/internal/basic_operators.h
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2022-12-12 11:09:10 -0800
committerJohn Hawthorn <john@hawthorn.email>2022-12-12 14:05:43 -0800
commit43f9351177c14c554d88630b3db771b2faf11dd0 (patch)
tree13bb052600ee82ffa64d2c2e8a91e8a53c29c755 /internal/basic_operators.h
parent17559f0420fd925147156e7434916b58c830f44c (diff)
downloadruby-43f9351177c14c554d88630b3db771b2faf11dd0.tar.gz
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.
Diffstat (limited to 'internal/basic_operators.h')
-rw-r--r--internal/basic_operators.h2
1 files changed, 1 insertions, 1 deletions
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