]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-121153: Fix some errors with use of _PyLong_CompactValue() (GH-121154)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 13 Jul 2024 10:40:44 +0000 (13:40 +0300)
committerGitHub <noreply@github.com>
Sat, 13 Jul 2024 10:40:44 +0000 (13:40 +0300)
commit18015451d0e3f4d155d56f70faf9b76ce5b7ad79
tree910432b2dbd6c372f70e340d456612909f45f14c
parent0759cecd9d945dfbac2226febaba51f41195555c
gh-121153: Fix some errors with use of _PyLong_CompactValue() (GH-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().
Objects/longobject.c
Python/bltinmodule.c