YJIT: Merge impl VALUE blocks [ci skip]

Reported by Kevin Menard.
This commit is contained in:
Alan Wu 2024-10-02 13:47:35 -04:00
parent 09761e4789
commit 2f5ab4c4b8

View File

@ -541,9 +541,7 @@ impl VALUE {
ptr
}
}
impl VALUE {
pub fn fixnum_from_usize(item: usize) -> Self {
assert!(item <= (RUBY_FIXNUM_MAX as usize)); // An unsigned will always be greater than RUBY_FIXNUM_MIN
let k: usize = item.wrapping_add(item.wrapping_add(1));