mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Change GC refcount to Py_ssize_t.
This commit is contained in:
parent
056a69cba6
commit
6db0e00d57
2 changed files with 2 additions and 2 deletions
|
@ -303,7 +303,7 @@ visit_reachable(PyObject *op, PyGC_Head *reachable)
|
|||
{
|
||||
if (PyObject_IS_GC(op)) {
|
||||
PyGC_Head *gc = AS_GC(op);
|
||||
const int gc_refs = gc->gc.gc_refs;
|
||||
const Py_ssize_t gc_refs = gc->gc.gc_refs;
|
||||
|
||||
if (gc_refs == 0) {
|
||||
/* This is in move_unreachable's 'young' list, but
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue