Mercurial > cpython-lru_cache-weakref
diff Python/getargs.c @ 43126:34491dc143e7
Ugh, hopefully I can get this right. The code is only compiled on Win64
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Fri, 31 Aug 2007 05:32:33 +0000 |
| parents | ea8b8e3d8c93 |
| children | 0476a2cc5658 |
line wrap: on
line diff
--- a/Python/getargs.c Fri Aug 31 05:20:36 2007 +0000 +++ b/Python/getargs.c Fri Aug 31 05:32:33 2007 +0000 @@ -672,7 +672,7 @@ return converterr("integer<n>", arg, msgbuf, bufsize); iobj = PyNumber_Index(arg); if (iobj != NULL) - ival = PyNumber_AsSsize_t(arg); + ival = PyInt_AsSsize_t(arg); if (ival == -1 && PyErr_Occurred()) return converterr("integer<n>", arg, msgbuf, bufsize); *p = ival;
