summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-31 04:31:47 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-31 04:31:47 (GMT)
commit538d17aa233e99a0652d0c6d482845e8e909b6e0 (patch)
treeca849e1fd8256b61f3a89adbb822df830d27f626
parent671117a43adbc8997ba210e09119ab63d730dfc9 (diff)
downloadcpython-538d17aa233e99a0652d0c6d482845e8e909b6e0.zip
cpython-538d17aa233e99a0652d0c6d482845e8e909b6e0.tar.gz
cpython-538d17aa233e99a0652d0c6d482845e8e909b6e0.tar.bz2
Try to fix a problem with large values on Win64. Diagnosed by Thomas Heller
-rw-r--r--Python/getargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 8d90111..ac85a6d 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<n>", arg, msgbuf, bufsize);
- ival = PyInt_AsSsize_t(arg);
+ ival = PyNumber_AsSsize_t(arg);
if (ival == -1 && PyErr_Occurred())
return converterr("integer<n>", arg, msgbuf, bufsize);
*p = ival;