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

Skip to content

[3.12] gh-121153: Fix some errors with use of _PyLong_CompactValue() … #121901

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

Merged

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jul 17, 2024

…(GH-121154)

  • The result has type Py_ssize_t, not intptr_t.
  • Type cast between unsigned and signed integer types should be explicit.
  • Downcasting should be explicit.
  • Fix integer overflow check in sum(). (cherry picked from commit 1801545)

…lue() (pythonGH-121154)

* The result has type Py_ssize_t, not intptr_t.
* Type cast between unsigned and signdet integer types should be explicit.
* Downcasting should be explicit.
* Fix integer overflow check in sum().
(cherry picked from commit 1801545)

Co-authored-by: Serhiy Storchaka <[email protected]>
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) July 17, 2024 07:39
@serhiy-storchaka serhiy-storchaka merged commit 874eed6 into python:3.12 Jul 17, 2024
26 of 27 checks passed
@serhiy-storchaka serhiy-storchaka deleted the backport-1801545-3.12 branch October 21, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant