diff options
author | John Hawthorn <john@hawthorn.email> | 2022-12-12 11:09:10 -0800 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2022-12-12 14:05:43 -0800 |
commit | 43f9351177c14c554d88630b3db771b2faf11dd0 (patch) | |
tree | 13bb052600ee82ffa64d2c2e8a91e8a53c29c755 /internal/basic_operators.h | |
parent | 17559f0420fd925147156e7434916b58c830f44c (diff) |
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6911
Diffstat (limited to 'internal/basic_operators.h')
-rw-r--r-- | internal/basic_operators.h | 2 |
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 |