Commit 6db0e00d authored by Martin v. Löwis's avatar Martin v. Löwis

Change GC refcount to Py_ssize_t.

parent 056a69cb
...@@ -250,7 +250,7 @@ typedef union _gc_head { ...@@ -250,7 +250,7 @@ typedef union _gc_head {
struct { struct {
union _gc_head *gc_next; union _gc_head *gc_next;
union _gc_head *gc_prev; union _gc_head *gc_prev;
int gc_refs; Py_ssize_t gc_refs;
} gc; } gc;
long double dummy; /* force worst-case alignment */ long double dummy; /* force worst-case alignment */
} PyGC_Head; } PyGC_Head;
......
...@@ -303,7 +303,7 @@ visit_reachable(PyObject *op, PyGC_Head *reachable) ...@@ -303,7 +303,7 @@ visit_reachable(PyObject *op, PyGC_Head *reachable)
{ {
if (PyObject_IS_GC(op)) { if (PyObject_IS_GC(op)) {
PyGC_Head *gc = AS_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) { if (gc_refs == 0) {
/* This is in move_unreachable's 'young' list, but /* This is in move_unreachable's 'young' list, but
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment