[Python-checkins] r42417 - in python/trunk: Include/objimpl.h Modules/gcmodule.c
martin.v.loewis
python-checkins at python.org
Thu Feb 16 15:56:14 CET 2006
Author: martin.v.loewis
Date: Thu Feb 16 15:56:14 2006
New Revision: 42417
Modified:
python/trunk/Include/objimpl.h
python/trunk/Modules/gcmodule.c
Log:
Change _PyObject_GC_Resize to expect Py_ssize_t.
Modified: python/trunk/Include/objimpl.h
==============================================================================
--- python/trunk/Include/objimpl.h (original)
+++ python/trunk/Include/objimpl.h Thu Feb 16 15:56:14 2006
@@ -238,7 +238,7 @@
#define PyObject_IS_GC(o) (PyType_IS_GC((o)->ob_type) && \
((o)->ob_type->tp_is_gc == NULL || (o)->ob_type->tp_is_gc(o)))
-PyAPI_FUNC(PyVarObject *) _PyObject_GC_Resize(PyVarObject *, int);
+PyAPI_FUNC(PyVarObject *) _PyObject_GC_Resize(PyVarObject *, Py_ssize_t);
#define PyObject_GC_Resize(type, op, n) \
( (type *) _PyObject_GC_Resize((PyVarObject *)(op), (n)) )
Modified: python/trunk/Modules/gcmodule.c
==============================================================================
--- python/trunk/Modules/gcmodule.c (original)
+++ python/trunk/Modules/gcmodule.c Thu Feb 16 15:56:14 2006
@@ -1284,7 +1284,7 @@
}
PyVarObject *
-_PyObject_GC_Resize(PyVarObject *op, int nitems)
+_PyObject_GC_Resize(PyVarObject *op, Py_ssize_t nitems)
{
const size_t basicsize = _PyObject_VAR_SIZE(op->ob_type, nitems);
PyGC_Head *g = AS_GC(op);
More information about the Python-checkins
mailing list