diff options
author | Georg Brandl <georg@python.org> | 2006-04-13 07:59:30 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-04-13 07:59:30 (GMT) |
commit | 7f573f7319f070d47565a2a37d659611ee844dd5 (patch) | |
tree | 5454f88f387a7cd9eb1624c10a4d8cb412ac6521 /Python/getargs.c | |
parent | b1ed7fac12fe51080c06e518a9fcaa21f0734744 (diff) | |
download | cpython-7f573f7319f070d47565a2a37d659611ee844dd5.zip cpython-7f573f7319f070d47565a2a37d659611ee844dd5.tar.gz cpython-7f573f7319f070d47565a2a37d659611ee844dd5.tar.bz2 |
Add a test for Py_ssize_t. Correct typo in getargs.c.
Diffstat (limited to 'Python/getargs.c')
-rw-r--r-- | Python/getargs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 8143d33..e6f607a 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -647,10 +647,10 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, 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; } |