Mercurial > cpython-lru_cache-weakref
diff Python/mactoolboxglue.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 | 0d462d789b18 |
| children | b91ca87e6f32 |
line wrap: on
line diff
--- a/Python/mactoolboxglue.c Sun Dec 02 09:40:06 2007 +0000 +++ b/Python/mactoolboxglue.c Sun Dec 02 14:31:20 2007 +0000 @@ -348,9 +348,9 @@ int PyMac_Getwide(PyObject *v, wide *rv) { - if (PyInt_Check(v)) { + if (PyLong_Check(v)) { rv->hi = 0; - rv->lo = PyInt_AsLong(v); + rv->lo = PyLong_AsLong(v); if( rv->lo & 0x80000000 ) rv->hi = -1; return 1; @@ -364,7 +364,7 @@ { if ( (w->hi == 0 && (w->lo & 0x80000000) == 0) || (w->hi == -1 && (w->lo & 0x80000000) ) ) - return PyInt_FromLong(w->lo); + return PyLong_FromLong(w->lo); return Py_BuildValue("(ll)", w->hi, w->lo); }
