Mercurial > cpython-lru_cache-weakref
diff Python/getargs.c @ 43123:85a678579983
Try to fix a problem with large values on Win64. Diagnosed by Thomas Heller
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Fri, 31 Aug 2007 04:31:47 +0000 |
| parents | b9226cad9dfd |
| children | ea8b8e3d8c93 |
line wrap: on
line diff
--- a/Python/getargs.c Fri Aug 31 04:25:05 2007 +0000 +++ b/Python/getargs.c Fri Aug 31 04:31:47 2007 +0000 @@ -669,7 +669,7 @@ Py_ssize_t ival; if (float_argument_error(arg)) return converterr("integer<n>", arg, msgbuf, bufsize); - ival = PyInt_AsSsize_t(arg); + ival = PyNumber_AsSsize_t(arg); if (ival == -1 && PyErr_Occurred()) return converterr("integer<n>", arg, msgbuf, bufsize); *p = ival;
