Mercurial > cpython-lru_cache-weakref
diff Python/modsupport.c @ 36521:30aef3ce2b26 legacy-trunk
Use Py_ssize_t to count the
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Thu, 16 Feb 2006 14:37:16 +0000 |
| parents | 7fdc639bc5b4 |
| children | 35612a131ac6 |
line wrap: on
line diff
--- a/Python/modsupport.c Thu Feb 16 14:35:38 2006 +0000 +++ b/Python/modsupport.c Thu Feb 16 14:37:16 2006 +0000 @@ -315,7 +315,7 @@ case 'n': #if SIZEOF_SIZE_T!=SIZEOF_LONG - return PyLong_FromSsize_t(va_arg(*p_va, Py_Ssize_t)); + return PyInt_FromSsize_t(va_arg(*p_va, Py_ssize_t)); #endif /* Fall through from 'n' to 'l' if Py_ssize_t is long */ case 'l':
