Mercurial > cpython-lru_cache-weakref
diff Python/getargs.c @ 37674:a4231aa3201a legacy-trunk
Add a test for Py_ssize_t. Correct typo in getargs.c.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Thu, 13 Apr 2006 07:59:30 +0000 |
| parents | f19addd69ad9 |
| children | 7ee4068e2c62 |
line wrap: on
line diff
--- a/Python/getargs.c Thu Apr 13 07:52:27 2006 +0000 +++ b/Python/getargs.c Thu Apr 13 07:59:30 2006 +0000 @@ -647,10 +647,10 @@ Py_ssize_t *p = va_arg(*p_va, Py_ssize_t *); Py_ssize_t ival; if (float_argument_error(arg)) - return converterr("integer<i>", arg, msgbuf, bufsize); + return converterr("integer<n>", arg, msgbuf, bufsize); ival = PyInt_AsSsize_t(arg); if (ival == -1 && PyErr_Occurred()) - return converterr("integer<i>", arg, msgbuf, bufsize); + return converterr("integer<n>", arg, msgbuf, bufsize); *p = ival; break; }
