]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-121153: Fix some errors with use of _PyLong_CompactValue() (GH-121154)...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 17 Jul 2024 08:04:45 +0000 (11:04 +0300)
committerGitHub <noreply@github.com>
Wed, 17 Jul 2024 08:04:45 +0000 (08:04 +0000)
commit09ff4ec14f4285aca1ddf907274e2bb3a1fbb6a1
tree9778290fb77610cdd63f0026c6037991e7e24ec0
parentd358f74a695b41b2b494b82df7ce3fd719dfac9c
[3.13] gh-121153: Fix some errors with use of _PyLong_CompactValue() (GH-121154) (GH-121900)

* 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)
Objects/longobject.c
Python/bltinmodule.c