Skip to content

[3.13] gh-121153: Fix some errors with use of _PyLong_CompactValue() (GH-121154)#121900

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-1801545-3.13
Jul 17, 2024
Merged

[3.13] gh-121153: Fix some errors with use of _PyLong_CompactValue() (GH-121154)#121900
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-1801545-3.13

Conversation

@serhiy-storchaka

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

Copy link
Copy Markdown
Member
  • 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 <storchaka@gmail.com>
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