FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use Py_ssize_t for PySet_Size() like all the other Py*_Size() functions. · python-emscripten/cpython@8c49c82 · GitHub

Repository navigation

Commit 8c49c82

Browse files
committed
Use Py_ssize_t for PySet_Size() like all the other Py*_Size() functions.
1 parent b62c433 commit 8c49c82

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎Include/setobject.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ PyAPI_DATA(PyTypeObject) PyFrozenSet_Type;
7676

7777
PyAPI_FUNC(PyObject *) PySet_New(PyObject *);
7878
PyAPI_FUNC(PyObject *) PyFrozenSet_New(PyObject *);
79-
PyAPI_FUNC(int) PySet_Size(PyObject *anyset);
79+
PyAPI_FUNC(Py_ssize_t) PySet_Size(PyObject *anyset);
8080
#define PySet_GET_SIZE(so) (((PySetObject *)(so))->used)
8181
PyAPI_FUNC(int) PySet_Contains(PyObject *anyset, PyObject *key);
8282
PyAPI_FUNC(int) PySet_Discard(PyObject *set, PyObject *key);

‎Objects/setobject.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,7 @@ PyFrozenSet_New(PyObject *iterable)
19581958
return result;
19591959
}
19601960

1961-
int
1961+
Py_ssize_t
19621962
PySet_Size(PyObject *anyset)
19631963
{
19641964
if (!PyAnySet_Check(anyset)) {

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL