[Python-3000-checkins] r58664 - python/branches/py3k/Python/sysmodule.c

neal.norwitz python-3000-checkins at python.org
Fri Oct 26 08:05:28 CEST 2007


Author: neal.norwitz
Date: Fri Oct 26 08:05:28 2007
New Revision: 58664

Modified:
   python/branches/py3k/Python/sysmodule.c
Log:
Try to fix some of the failing tests on Win64.  PY_SSIZE_T_MAX (8 bytes)
is larger than what can fit into a long (4 bytes).  Hopefully this will
fix more problems than it creates.  There are many, many compile warnings 
on Win64.  Each of these should be investigated to determine if they
are real problems or not.  Many of these presumably affect the trunk too.


Modified: python/branches/py3k/Python/sysmodule.c
==============================================================================
--- python/branches/py3k/Python/sysmodule.c	(original)
+++ python/branches/py3k/Python/sysmodule.c	Fri Oct 26 08:05:28 2007
@@ -1089,7 +1089,7 @@
 	SET_SYS_FROM_STRING("maxint",
 			    PyInt_FromLong(PyInt_GetMax()));
 	SET_SYS_FROM_STRING("maxsize",
-			    PyInt_FromLong(PY_SSIZE_T_MAX));
+			    PyInt_FromSsize_t(PY_SSIZE_T_MAX));
 	SET_SYS_FROM_STRING("maxunicode",
 			    PyInt_FromLong(PyUnicode_GetMax()));
 	SET_SYS_FROM_STRING("builtin_module_names",


More information about the Python-3000-checkins mailing list