diff --git a/compiler/vm/src/heap/object_inline/int.rs b/compiler/vm/src/heap/object_inline/int.rs index 5a454145e..246b79b5b 100644 --- a/compiler/vm/src/heap/object_inline/int.rs +++ b/compiler/vm/src/heap/object_inline/int.rs @@ -92,7 +92,7 @@ impl InlineInt { // One 1 is necessary for the sign. i64::BITS - lhs.leading_ones() + 1 } else { - i64::BITS - lhs.leading_zeros() + lhs.bit_length() }; #[allow(clippy::cast_possible_truncation)]