Files
Jay Lorch 839510df56 fix: Prevent panic by Number::modulo (#773)
In Number::modulo, it calls Number::ints_to_bigint, which could panic. The reason is that calling .to_integer() isn't enough to guarantee that .to_bigint_owned() will return Some, but Number::ints_to_bigint assumes it will and calls unwrap(). In particular, it might be that it's a float corresponding to an integer that's larger than F64_SAFE_INTEGER. The fix is to not call Number::ints_to_bigint (and indeed to delete that entire function, which is only used in this one place), and instead only call unwrap when Some is returned.
2026-07-27 14:06:42 -05:00
..
2023-10-24 10:11:50 -07:00
2023-02-28 09:38:40 +05:30
2023-12-23 09:35:20 -08:00
2023-02-28 09:38:40 +05:30