Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 43686:1998ee0eff2c
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.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Fri, 26 Oct 2007 06:05:28 +0000 |
| parents | 4e6b4ba60c3b |
| children | 658cd34a8c5d |
comparison
equal
deleted
inserted
replaced
| 43685:5b12b0bd8188 | 43686:1998ee0eff2c |
|---|---|
| 1087 SET_SYS_FROM_STRING("exec_prefix", | 1087 SET_SYS_FROM_STRING("exec_prefix", |
| 1088 PyUnicode_FromString(Py_GetExecPrefix())); | 1088 PyUnicode_FromString(Py_GetExecPrefix())); |
| 1089 SET_SYS_FROM_STRING("maxint", | 1089 SET_SYS_FROM_STRING("maxint", |
| 1090 PyInt_FromLong(PyInt_GetMax())); | 1090 PyInt_FromLong(PyInt_GetMax())); |
| 1091 SET_SYS_FROM_STRING("maxsize", | 1091 SET_SYS_FROM_STRING("maxsize", |
| 1092 PyInt_FromLong(PY_SSIZE_T_MAX)); | 1092 PyInt_FromSsize_t(PY_SSIZE_T_MAX)); |
| 1093 SET_SYS_FROM_STRING("maxunicode", | 1093 SET_SYS_FROM_STRING("maxunicode", |
| 1094 PyInt_FromLong(PyUnicode_GetMax())); | 1094 PyInt_FromLong(PyUnicode_GetMax())); |
| 1095 SET_SYS_FROM_STRING("builtin_module_names", | 1095 SET_SYS_FROM_STRING("builtin_module_names", |
| 1096 list_builtin_module_names()); | 1096 list_builtin_module_names()); |
| 1097 { | 1097 { |
