diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-02 06:14:22 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-02 06:14:22 (GMT) |
commit | c5e060dee65a03ca2401487315d6c45dead09fe1 (patch) | |
tree | 6e511f92022cb278324a4a2fb2b581988eed3939 /Objects/weakrefobject.c | |
parent | 5fb9c20f2a6c76279e16420255758855d6d98432 (diff) | |
download | cpython-c5e060dee65a03ca2401487315d6c45dead09fe1.zip cpython-c5e060dee65a03ca2401487315d6c45dead09fe1.tar.gz cpython-c5e060dee65a03ca2401487315d6c45dead09fe1.tar.bz2 |
_PyWeakref_GetWeakrefCount() now returns a Py_ssize_t instead of long.
Diffstat (limited to 'Objects/weakrefobject.c')
-rw-r--r-- | Objects/weakrefobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/weakrefobject.c b/Objects/weakrefobject.c index bbeb3c0..826f571 100644 --- a/Objects/weakrefobject.c +++ b/Objects/weakrefobject.c @@ -6,10 +6,10 @@ ((PyWeakReference **) PyObject_GET_WEAKREFS_LISTPTR(o)) -long +Py_ssize_t _PyWeakref_GetWeakrefCount(PyWeakReference *head) { - long count = 0; + Py_ssize_t count = 0; while (head != NULL) { ++count; |