summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-10-26 06:05:28 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-10-26 06:05:28 (GMT)
commit56cdf686fc4f7596d3c93d2a1525e661297fb557 (patch)
treef77b562e428a242e266df6329e4e6cda40e7bf13 /Python
parent37f7e6ebcbf86b5c7f4e5bad574d5f0173f77765 (diff)
downloadcpython-56cdf686fc4f7596d3c93d2a1525e661297fb557.zip
cpython-56cdf686fc4f7596d3c93d2a1525e661297fb557.tar.gz
cpython-56cdf686fc4f7596d3c93d2a1525e661297fb557.tar.bz2
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.
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index c3eb68e..13e0a99 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1089,7 +1089,7 @@ _PySys_Init(void)
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",