https://github.com/python/cpython/commit/487fdbed40734fd7721457c6f6ffeca03da0b0e7
commit: 487fdbed40734fd7721457c6f6ffeca03da0b0e7
branch: main
author: Mark Shannon <[email protected]>
committer: markshannon <[email protected]>
date: 2024-12-12T11:22:20Z
summary:
GH-125174: Fix compiler warning (GH-127860)
Fix compiler warning
files:
M Include/internal/pycore_object.h
diff --git a/Include/internal/pycore_object.h b/Include/internal/pycore_object.h
index 22de3c9d4e32ea..668ea47ca727e2 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));
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]