summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-31 05:32:33 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-31 05:32:33 (GMT)
commit64fd6fb25404f1da05b571aaa75929501c809916 (patch)
tree19db9b3507afe50803ddda49ab0a04a80e2114a9 /Python
parentb879f57b328cd5fdad1190559c3bf5c890b47a16 (diff)
downloadcpython-64fd6fb25404f1da05b571aaa75929501c809916.zip
cpython-64fd6fb25404f1da05b571aaa75929501c809916.tar.gz
cpython-64fd6fb25404f1da05b571aaa75929501c809916.tar.bz2
Ugh, hopefully I can get this right. The code is only compiled on Win64
Diffstat (limited to 'Python')
-rw-r--r--Python/getargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index f11649a..8608684 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -672,7 +672,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
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;