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.
This commit is contained in:
Neal Norwitz 2007-10-26 06:05:28 +00:00
parent 37f7e6ebcb
commit 56cdf686fc
1 changed files with 1 additions and 1 deletions

View File

@ -1089,7 +1089,7 @@ _PySys_Init(void)
SET_SYS_FROM_STRING("maxint", SET_SYS_FROM_STRING("maxint",
PyInt_FromLong(PyInt_GetMax())); PyInt_FromLong(PyInt_GetMax()));
SET_SYS_FROM_STRING("maxsize", SET_SYS_FROM_STRING("maxsize",
PyInt_FromLong(PY_SSIZE_T_MAX)); PyInt_FromSsize_t(PY_SSIZE_T_MAX));
SET_SYS_FROM_STRING("maxunicode", SET_SYS_FROM_STRING("maxunicode",
PyInt_FromLong(PyUnicode_GetMax())); PyInt_FromLong(PyUnicode_GetMax()));
SET_SYS_FROM_STRING("builtin_module_names", SET_SYS_FROM_STRING("builtin_module_names",