Author: neal.norwitz
Date: Fri Aug 31 06:31:47 2007
New Revision: 57810

Modified:
   python/branches/py3k/Python/getargs.c
Log:
Try to fix a problem with large values on Win64.  Diagnosed by Thomas Heller

Modified: python/branches/py3k/Python/getargs.c
==============================================================================
--- python/branches/py3k/Python/getargs.c       (original)
+++ python/branches/py3k/Python/getargs.c       Fri Aug 31 06:31:47 2007
@@ -669,7 +669,7 @@
                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;
_______________________________________________
Python-3000-checkins mailing list
Python-3000-checkins@python.org
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to