mirror of
https://github.com/python/cpython.git
synced 2025-08-09 19:38:42 +00:00
[3.12] gh-111342: fix typo in math.sumprod (GH-111416) (gh-111419)
This commit is contained in:
parent
2398036eea
commit
c3f75b757f
3 changed files with 3 additions and 1 deletions
|
@ -2831,7 +2831,7 @@ math_sumprod_impl(PyObject *module, PyObject *p, PyObject *q)
|
|||
PyErr_Clear();
|
||||
goto finalize_flt_path;
|
||||
}
|
||||
} else if (q_type_float && (PyLong_CheckExact(p_i) || PyBool_Check(q_i))) {
|
||||
} else if (q_type_float && (PyLong_CheckExact(p_i) || PyBool_Check(p_i))) {
|
||||
flt_q = PyFloat_AS_DOUBLE(q_i);
|
||||
flt_p = PyLong_AsDouble(p_i);
|
||||
if (flt_p == -1.0 && PyErr_Occurred()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue