From 64fd6fb25404f1da05b571aaa75929501c809916 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 31 Aug 2007 05:32:33 +0000 Subject: Ugh, hopefully I can get this right. The code is only compiled on Win64 --- Python/getargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", 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; -- cgit v0.12