summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-12-12 11:22:20 (GMT)
committerGitHub <noreply@github.com>2024-12-12 11:22:20 (GMT)
commit487fdbed40734fd7721457c6f6ffeca03da0b0e7 (patch)
treec5caed63ebc6f4022f971c033342fda88adf00ef
parent292afd1d51dd7aacb12a6165f596ae7bb58c9ba8 (diff)
downloadcpython-487fdbed40734fd7721457c6f6ffeca03da0b0e7.zip
cpython-487fdbed40734fd7721457c6f6ffeca03da0b0e7.tar.gz
cpython-487fdbed40734fd7721457c6f6ffeca03da0b0e7.tar.bz2
GH-125174: Fix compiler warning (GH-127860)
Fix compiler warning
-rw-r--r--Include/internal/pycore_object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_object.h b/Include/internal/pycore_object.h
index 22de3c9..668ea47 100644
--- a/Include/internal/pycore_object.h
+++ b/Include/internal/pycore_object.h
@@ -184,7 +184,7 @@ PyAPI_FUNC(void) _Py_SetImmortalUntracked(PyObject *op);
// Makes an immortal object mortal again with the specified refcnt. Should only
// be used during runtime finalization.
-static inline void _Py_SetMortal(PyObject *op, Py_ssize_t refcnt)
+static inline void _Py_SetMortal(PyObject *op, short refcnt)
{
if (op) {
assert(_Py_IsImmortal(op));