Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7956447

Browse files
committed
Fix typo in sumprod()
1 parent 4e25c35 commit 7956447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/mathmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2823,7 +2823,7 @@ math_sumprod_impl(PyObject *module, PyObject *p, PyObject *q)
28232823
PyErr_Clear();
28242824
goto finalize_flt_path;
28252825
}
2826-
} else if (q_type_float && (PyLong_CheckExact(p_i) || PyBool_Check(q_i))) {
2826+
} else if (q_type_float && (PyLong_CheckExact(p_i) || PyBool_Check(p_i))) {
28272827
flt_q = PyFloat_AS_DOUBLE(q_i);
28282828
flt_p = PyLong_AsDouble(p_i);
28292829
if (flt_p == -1.0 && PyErr_Occurred()) {

0 commit comments

Comments
 (0)