Issue #15989: Fix several occurrences of integer overflow
when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
S
Serhiy Storchaka committed
441d30fac7f4037e4a79e4ada873de3b6f6e5a26
Parent: ff12fae