Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56cdf68

Browse files
committed
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.
1 parent 37f7e6e commit 56cdf68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/sysmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ _PySys_Init(void)
10891089
SET_SYS_FROM_STRING("maxint",
10901090
PyInt_FromLong(PyInt_GetMax()));
10911091
SET_SYS_FROM_STRING("maxsize",
1092-
PyInt_FromLong(PY_SSIZE_T_MAX));
1092+
PyInt_FromSsize_t(PY_SSIZE_T_MAX));
10931093
SET_SYS_FROM_STRING("maxunicode",
10941094
PyInt_FromLong(PyUnicode_GetMax()));
10951095
SET_SYS_FROM_STRING("builtin_module_names",

0 commit comments

Comments
 (0)