Skip to content

Commit 73b7f52

Browse files
committed
Fix compiler warnings
1 parent b55fe37 commit 73b7f52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Python/gc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ IS_IN_VISITED(PyGC_Head *gc, int visited_space)
13471347
struct container_and_flag {
13481348
PyGC_Head *container;
13491349
int visited_space;
1350-
uintptr_t size;
1350+
Py_ssize_t size;
13511351
};
13521352

13531353
/* A traversal callback for adding to container) */
@@ -1370,7 +1370,7 @@ visit_add_to_container(PyObject *op, void *arg)
13701370
return 0;
13711371
}
13721372

1373-
static uintptr_t
1373+
static Py_ssize_t
13741374
expand_region_transitively_reachable(PyGC_Head *container, PyGC_Head *gc, GCState *gcstate)
13751375
{
13761376
validate_list(container, collecting_clear_unreachable_clear);
@@ -1420,7 +1420,7 @@ completed_cycle(GCState *gcstate)
14201420
gcstate->phase = GC_PHASE_MARK;
14211421
}
14221422

1423-
static int
1423+
static Py_ssize_t
14241424
move_to_reachable(PyObject *op, PyGC_Head *reachable, int visited_space)
14251425
{
14261426
if (op != NULL && !_Py_IsImmortal(op) && _PyObject_IS_GC(op)) {
@@ -1435,7 +1435,7 @@ move_to_reachable(PyObject *op, PyGC_Head *reachable, int visited_space)
14351435
return 0;
14361436
}
14371437

1438-
static int
1438+
static Py_ssize_t
14391439
mark_all_reachable(PyGC_Head *reachable, PyGC_Head *visited, int visited_space)
14401440
{
14411441
// Transitively traverse all objects from reachable, until empty

0 commit comments

Comments
 (0)