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-02-11 06:37:04 +05:30
2023-12-23 11:55:25 -08:00
2023-12-27 17:00:40 -08:00
2023-10-24 10:11:50 -07:00
2023-10-24 10:11:50 -07:00
2024-04-22 07:41:35 -07:00
2023-11-27 10:02:37 -08:00
2024-02-26 17:31:48 -08:00
2023-02-09 19:40:35 +00:00
2023-10-09 14:27:31 -07:00