SIGN IN SIGN UP

[3.12] 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 signed integer types should be explicit.
* Downcasting should be explicit.
* Fix integer overflow check in sum().
(cherry picked from commit 1801545)
S
Serhiy Storchaka committed
874eed6cfe165df6469bf806cd3f1eb08e432286
Parent: 6a19d22
Committed by GitHub <noreply@github.com> on 7/17/2024, 7:58:25 AM