mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-90822: Make PY_SSIZE_T_MAX
and PY_SSIZE_T_MIN
constant expression (GH-92071)
This commit is contained in:
parent
4d10f703d7
commit
d414f7ece8
2 changed files with 8 additions and 5 deletions
|
@ -162,8 +162,10 @@ WIN32 is still required for the locale module.
|
|||
/* Define like size_t, omitting the "unsigned" */
|
||||
#ifdef MS_WIN64
|
||||
typedef __int64 Py_ssize_t;
|
||||
# define PY_SSIZE_T_MAX LLONG_MAX
|
||||
#else
|
||||
typedef _W64 int Py_ssize_t;
|
||||
# define PY_SSIZE_T_MAX INT_MAX
|
||||
#endif
|
||||
#define HAVE_PY_SSIZE_T 1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue