зеркало из https://github.com/github/ruby.git
Simplify BLSR code
And suppress unary minus operator to unsigned type warnings by VC.
This commit is contained in:
Родитель
9958ed61bc
Коммит
7bab788309
2
iseq.c
2
iseq.c
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче