[Python-checkins] r42834 - in python/trunk: Include/setobject.h Objects/setobject.c

neal.norwitz python-checkins at python.org
Sat Mar 4 19:41:22 CET 2006


Author: neal.norwitz
Date: Sat Mar  4 19:41:19 2006
New Revision: 42834

Modified:
   python/trunk/Include/setobject.h
   python/trunk/Objects/setobject.c
Log:
Use Py_ssize_t for PySet_Size() like all the other Py*_Size() functions.


Modified: python/trunk/Include/setobject.h
==============================================================================
--- python/trunk/Include/setobject.h	(original)
+++ python/trunk/Include/setobject.h	Sat Mar  4 19:41:19 2006
@@ -76,7 +76,7 @@
 
 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);

Modified: python/trunk/Objects/setobject.c
==============================================================================
--- python/trunk/Objects/setobject.c	(original)
+++ python/trunk/Objects/setobject.c	Sat Mar  4 19:41:19 2006
@@ -1958,7 +1958,7 @@
 	return result;
 }
 
-int
+Py_ssize_t
 PySet_Size(PyObject *anyset)
 {
 	if (!PyAnySet_Check(anyset)) {


More information about the Python-checkins mailing list