diff options
| author | Ganesh Kathiresan <ganesh3597@gmail.com> | 2022-05-02 13:53:28 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-02 17:23:28 +0900 |
| commit | d414f7ece8169097a32cd228bb32da0418833db4 (patch) | |
| tree | a209b1fcc55070c8e6df71c65cf0ee42f625df91 /PC | |
| parent | 4d10f703d79b72a9c7f88862c0b4a9abbfb04ee2 (diff) | |
| download | cpython-git-d414f7ece8169097a32cd228bb32da0418833db4.tar.gz | |
gh-90822: Make `PY_SSIZE_T_MAX` and `PY_SSIZE_T_MIN` constant expression (GH-92071)
Diffstat (limited to 'PC')
| -rw-r--r-- | PC/pyconfig.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h index e8649be568..5a96a4ebe5 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -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 |
