From 538d17aa233e99a0652d0c6d482845e8e909b6e0 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 31 Aug 2007 04:31:47 +0000 Subject: [PATCH] Try to fix a problem with large values on Win64. Diagnosed by Thomas Heller --- Python/getargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/getargs.c b/Python/getargs.c index 8d90111e2de..ac85a6d0de3 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -669,7 +669,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, Py_ssize_t ival; if (float_argument_error(arg)) return converterr("integer", arg, msgbuf, bufsize); - ival = PyInt_AsSsize_t(arg); + ival = PyNumber_AsSsize_t(arg); if (ival == -1 && PyErr_Occurred()) return converterr("integer", arg, msgbuf, bufsize); *p = ival;