diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-08 15:59:25 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-08 15:59:25 +0900 |
commit | 7bab7883093df12048c4535b59b04e73f3b3b4ad (patch) | |
tree | 318630c626390c967cb264c5e68e715c91e8f96c | |
parent | 9958ed61bc0f0156f5ed9fd8f058d964d84cac19 (diff) |
Simplify BLSR code
And suppress unary minus operator to unsigned type warnings by VC.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6108
-rw-r--r-- | iseq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -257,7 +257,7 @@ iseq_scan_bits(unsigned int page, iseq_bits_t bits, VALUE *code, iseq_value_itr_ original_iseq[page_offset + offset] = newop; } } - bits ^= bits & -bits; // Reset Lowest Set Bit (BLSR) + bits &= bits - 1; // Reset Lowest Set Bit (BLSR) } } |