]> granicus.if.org Git - python/commitdiff
Ugh, hopefully I can get this right. The code is only compiled on Win64
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 31 Aug 2007 05:32:33 +0000 (05:32 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 31 Aug 2007 05:32:33 +0000 (05:32 +0000)
Python/getargs.c

index f11649adeeb51c5ee81e7a74783900d09a4b3b4b..8608684e37f1af5089ea8b00a3ed50e4463ed39f 100644 (file)
@@ -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;