From 6db0e00d571781806cb850088365730fa64e80a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Wed, 1 Mar 2006 16:56:25 +0000 Subject: Change GC refcount to Py_ssize_t. --- Include/objimpl.h | 2 +- Modules/gcmodule.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/objimpl.h b/Include/objimpl.h index ed521fe..f6fd1a4 100644 --- a/Include/objimpl.h +++ b/Include/objimpl.h @@ -250,7 +250,7 @@ typedef union _gc_head { struct { union _gc_head *gc_next; union _gc_head *gc_prev; - int gc_refs; + Py_ssize_t gc_refs; } gc; long double dummy; /* force worst-case alignment */ } PyGC_Head; diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 42dfa15..bf879c9 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -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 -- cgit v0.12