]> granicus.if.org Git - python/commitdiff
Change GC refcount to Py_ssize_t.
authorMartin v. Löwis <martin@v.loewis.de>
Wed, 1 Mar 2006 16:56:25 +0000 (16:56 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Wed, 1 Mar 2006 16:56:25 +0000 (16:56 +0000)
Include/objimpl.h
Modules/gcmodule.c

index ed521fe556830e39137adf00c33243112277a637..f6fd1a4db932a14e4d60356e43e84a544f7fa433 100644 (file)
@@ -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;
index 42dfa1532bfee8aa5f725d3d9c929bd125b86b12..bf879c954d23fcc67bdc24498f0b22cd63a62e96 100644 (file)
@@ -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