diff Modules/_weakref.c @ 44099:f324631462a2

Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
author Christian Heimes <christian@cheimes.de>
date Sun, 02 Dec 2007 14:31:20 +0000
parents e70cdce0e8b2
children 86a2679dca46
line wrap: on
line diff
--- a/Modules/_weakref.c	Sun Dec 02 09:40:06 2007 +0000
+++ b/Modules/_weakref.c	Sun Dec 02 14:31:20 2007 +0000
@@ -17,10 +17,10 @@
     if (PyType_SUPPORTS_WEAKREFS(Py_Type(object))) {
         PyWeakReference **list = GET_WEAKREFS_LISTPTR(object);
 
-        result = PyInt_FromSsize_t(_PyWeakref_GetWeakrefCount(*list));
+        result = PyLong_FromSsize_t(_PyWeakref_GetWeakrefCount(*list));
     }
     else
-        result = PyInt_FromLong(0);
+        result = PyLong_FromLong(0);
 
     return result;
 }