mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +00:00
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.
This commit is contained in:
parent
ab74504346
commit
05d68a8bd8
5 changed files with 14 additions and 14 deletions
|
@ -397,7 +397,7 @@ fold_compare(expr_ty node, PyArena *arena, int optimize)
|
|||
{
|
||||
asdl_int_seq *ops;
|
||||
asdl_seq *args;
|
||||
int i;
|
||||
Py_ssize_t i;
|
||||
|
||||
ops = node->v.Compare.ops;
|
||||
args = node->v.Compare.comparators;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue