YJIT: Merge impl VALUE
blocks [ci skip]
Reported by Kevin Menard.
This commit is contained in:
parent
09761e4789
commit
2f5ab4c4b8
@ -541,9 +541,7 @@ impl VALUE {
|
|||||||
|
|
||||||
ptr
|
ptr
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
impl VALUE {
|
|
||||||
pub fn fixnum_from_usize(item: usize) -> Self {
|
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
|
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));
|
let k: usize = item.wrapping_add(item.wrapping_add(1));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user