diff --git a/std/math/big/int.jule b/std/math/big/int.jule index 34a2ca1ed..f2af71d58 100644 --- a/std/math/big/int.jule +++ b/std/math/big/int.jule @@ -169,9 +169,9 @@ impl Int { if self.len() > 63 { error(if self.neg { i64.MIN } else { i64.MAX }) } - let x = i64(self.nat.to_u64() else { error(error) }) + let x = i64(u64_from_bits(self.nat.bits)) if self.neg { - ret -x + ret i64.MIN + x } ret x }