summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2021-05-08 01:17:37 (GMT)
committerGitHub <noreply@github.com>2021-05-08 01:17:37 (GMT)
commit4d4be477055d0f9e415407bcd193788fae04dc11 (patch)
tree5940271bc93dc31e45cc134812c58ba45410d0be /Include
parent092f9ddb5e85665552c8207972cd393d492f764e (diff)
downloadcpython-4d4be477055d0f9e415407bcd193788fae04dc11.zip
cpython-4d4be477055d0f9e415407bcd193788fae04dc11.tar.gz
cpython-4d4be477055d0f9e415407bcd193788fae04dc11.tar.bz2
Do not use Py_ssize_clean_t (GH-25940)
Diffstat (limited to 'Include')
-rw-r--r--Include/pyport.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 6ab0ae4..b2b53dd 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -118,12 +118,8 @@ typedef Py_ssize_t Py_hash_t;
#define SIZEOF_PY_UHASH_T SIZEOF_SIZE_T
typedef size_t Py_uhash_t;
-/* Only used for compatibility with code that may not be PY_SSIZE_T_CLEAN. */
-#ifdef PY_SSIZE_T_CLEAN
+/* Now PY_SSIZE_T_CLEAN is mandatory. This is just for backward compatibility. */
typedef Py_ssize_t Py_ssize_clean_t;
-#else
-typedef int Py_ssize_clean_t;
-#endif
/* Largest possible value of size_t. */
#define PY_SIZE_MAX SIZE_MAX