Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in math_sumprod_impl() #111342

Closed
skirpichev opened this issue Oct 26, 2023 · 2 comments
Closed

Typo in math_sumprod_impl() #111342

skirpichev opened this issue Oct 26, 2023 · 2 comments

Comments

@skirpichev
Copy link
Contributor

skirpichev commented Oct 26, 2023

} else if (q_type_float && (PyLong_CheckExact(p_i) || PyBool_Check(q_i))) {

Obviously, should be p_i in the last OR operand, c.f. L2824.

Factored out from #110000. I think this should be fixed regardless on the fate of that pr. 052d7de has also simple test for this if.

Linked PRs

@rhettinger
Copy link
Contributor

@skirpichev Care to make a PR with test for this?

skirpichev added a commit to skirpichev/cpython that referenced this issue Oct 28, 2023
@skirpichev
Copy link
Contributor Author

Yep. #111416

miss-islington pushed a commit to miss-islington/cpython that referenced this issue Oct 28, 2023
(cherry picked from commit 9dc4fb8)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
iritkatriel pushed a commit to iritkatriel/cpython that referenced this issue Oct 29, 2023
aisk pushed a commit to aisk/cpython that referenced this issue Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants