summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-04-17 17:13:06 (GMT)
committerGitHub <noreply@github.com>2020-04-17 17:13:06 (GMT)
commit1a1bd2e23871619adc1405e1cdc7c1e61252fd2c (patch)
tree180c1a278ebff4e696cf213ab41857983aca75c4 /Python/pystate.c
parent9f5fe7910f4a1bf5a425837d4915e332b945eb7b (diff)
downloadcpython-1a1bd2e23871619adc1405e1cdc7c1e61252fd2c.zip
cpython-1a1bd2e23871619adc1405e1cdc7c1e61252fd2c.tar.gz
cpython-1a1bd2e23871619adc1405e1cdc7c1e61252fd2c.tar.bz2
bpo-40302: Replace PY_INT64_T with int64_t (GH-19573)
* Replace PY_INT64_T with int64_t * Replace PY_UINT32_T with uint32_t * Replace PY_UINT64_T with uint64_t sha3module.c no longer checks if PY_UINT64_T is defined since it's always defined and uint64_t is always available on platforms supported by Python.
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 84a694b..d6f5882 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -452,11 +452,11 @@ PyInterpreterState_GetID(PyInterpreterState *interp)
static PyInterpreterState *
-interp_look_up_id(_PyRuntimeState *runtime, PY_INT64_T requested_id)
+interp_look_up_id(_PyRuntimeState *runtime, int64_t requested_id)
{
PyInterpreterState *interp = runtime->interpreters.head;
while (interp != NULL) {
- PY_INT64_T id = PyInterpreterState_GetID(interp);
+ int64_t id = PyInterpreterState_GetID(interp);
if (id < 0) {
return NULL;
}
@@ -469,7 +469,7 @@ interp_look_up_id(_PyRuntimeState *runtime, PY_INT64_T requested_id)
}
PyInterpreterState *
-_PyInterpreterState_LookUpID(PY_INT64_T requested_id)
+_PyInterpreterState_LookUpID(int64_t requested_id)
{
PyInterpreterState *interp = NULL;
if (requested_id >= 0) {