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 f11649a..8608684 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -672,7 +672,7 @@
 			return converterr("integer<n>", 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<n>", arg, msgbuf, bufsize);
 		*p = ival;