]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Try to fix some of the failing tests on Win64. PY_SSIZE_T_MAX (8 bytes)
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 26 Oct 2007 06:05:28 +0000 (06:05 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 26 Oct 2007 06:05:28 +0000 (06:05 +0000)
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.

Python/sysmodule.c

index c3eb68e3604f3cdf28cca1fe39a4623098f71c9f..13e0a99466316f40efdea80f0648c58579dda1dd 100644 (file)
@@ -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",