From 8c49c82889d1af480fa159b56c0e70ef81cf6749 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sat, 4 Mar 2006 18:41:19 +0000 Subject: [PATCH] Use Py_ssize_t for PySet_Size() like all the other Py*_Size() functions. --- Include/setobject.h | 2 +- Objects/setobject.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/setobject.h b/Include/setobject.h index 1b0e5b12cd9..cea95cc29e6 100644 --- a/Include/setobject.h +++ b/Include/setobject.h @@ -76,7 +76,7 @@ PyAPI_DATA(PyTypeObject) PyFrozenSet_Type; PyAPI_FUNC(PyObject *) PySet_New(PyObject *); PyAPI_FUNC(PyObject *) PyFrozenSet_New(PyObject *); -PyAPI_FUNC(int) PySet_Size(PyObject *anyset); +PyAPI_FUNC(Py_ssize_t) PySet_Size(PyObject *anyset); #define PySet_GET_SIZE(so) (((PySetObject *)(so))->used) PyAPI_FUNC(int) PySet_Contains(PyObject *anyset, PyObject *key); PyAPI_FUNC(int) PySet_Discard(PyObject *set, PyObject *key); diff --git a/Objects/setobject.c b/Objects/setobject.c index 0041a10106f..ed3d1900a8a 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -1958,7 +1958,7 @@ PyFrozenSet_New(PyObject *iterable) return result; } -int +Py_ssize_t PySet_Size(PyObject *anyset) { if (!PyAnySet_Check(anyset)) {