]> granicus.if.org Git - python/commit
bpo-9566: Fix size_t=>int downcast warnings (#5230)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 18 Jan 2018 10:15:25 +0000 (11:15 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Jan 2018 10:15:25 +0000 (11:15 +0100)
commit05d68a8bd84cb141be9f9335f5b3540f15a989c4
treea4e48a3b3c5b46422f83ffb9b4314eb8ea344325
parentab74504346a6e2569b3255b7b621c589716888c4
bpo-9566: Fix size_t=>int downcast warnings (#5230)

* Use wider types (int => Py_ssize_t) to avoid integer overflows.
* Fix gc.get_freeze_count(): use Py_ssize_t type rather than int, since gc_list_size() returns a Py_ssize_t.
Modules/clinic/gcmodule.c.h
Modules/gcmodule.c
Python/ast_opt.c
Python/bltinmodule.c
Python/pathconfig.c