[Python-checkins] r42732 - in python/trunk: Include/objimpl.h Modules/gcmodule.c
martin.v.loewis
python-checkins at python.org
Wed Mar 1 17:56:29 CET 2006
Author: martin.v.loewis
Date: Wed Mar 1 17:56:25 2006
New Revision: 42732
Modified:
python/trunk/Include/objimpl.h
python/trunk/Modules/gcmodule.c
Log:
Change GC refcount to Py_ssize_t.
Modified: python/trunk/Include/objimpl.h
==============================================================================
--- python/trunk/Include/objimpl.h (original)
+++ python/trunk/Include/objimpl.h Wed Mar 1 17:56:25 2006
@@ -250,7 +250,7 @@
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;
Modified: python/trunk/Modules/gcmodule.c
==============================================================================
--- python/trunk/Modules/gcmodule.c (original)
+++ python/trunk/Modules/gcmodule.c Wed Mar 1 17:56:25 2006
@@ -303,7 +303,7 @@
{
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
More information about the Python-checkins
mailing list