There was an error while loading. Please reload this page.
1 parent 430eb5f commit 40fc7c2Copy full SHA for 40fc7c2
3 files changed
Cargo.lock
Cargo.toml
@@ -200,7 +200,7 @@ optional = "0.5"
200
parking_lot = "0.12.3"
201
paste = "1.0.15"
202
proc-macro2 = "1.0.105"
203
-pymath = { version = "0.1.5", features = ["mul_add", "malachite-bigint", "complex"] }
+pymath = { version = "0.2.0", features = ["mul_add", "malachite-bigint", "complex"] }
204
quote = "1.0.45"
205
radium = "1.1.1"
206
rand = "0.9"
crates/stdlib/src/math.rs
@@ -712,7 +712,8 @@ mod math {
712
}
713
// Finalize float path
714
if !flt_p_values.is_empty() {
715
- let flt_result = pymath::math::sumprod(&flt_p_values, &flt_q_values);
+ let flt_result = pymath::math::sumprod(&flt_p_values, &flt_q_values)
716
+ .map_err(|err| pymath_exception(err, vm))?;
717
let flt_obj: PyObjectRef = vm.ctx.new_float(flt_result).into();
718
obj_total = Some(match obj_total {
719
Some(total) => vm._add(&total, &flt_obj)?,
0 commit comments