From: Neal Norwitz Date: Fri, 31 Aug 2007 05:32:33 +0000 (+0000) Subject: Ugh, hopefully I can get this right. The code is only compiled on Win64 X-Git-Tag: v3.0a1~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64fd6fb25404f1da05b571aaa75929501c809916;p=python Ugh, hopefully I can get this right. The code is only compiled on Win64 --- diff --git a/Python/getargs.c b/Python/getargs.c index f11649adee..8608684e37 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", 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", arg, msgbuf, bufsize); *p = ival;