]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-125174: Fix compiler warning (GH-127860)
authorMark Shannon <mark@hotpy.org>
Thu, 12 Dec 2024 11:22:20 +0000 (11:22 +0000)
committerGitHub <noreply@github.com>
Thu, 12 Dec 2024 11:22:20 +0000 (11:22 +0000)
Fix compiler warning

Include/internal/pycore_object.h

index 22de3c9d4e32ea5b24c7ec7bdca2199d3f1894ce..668ea47ca727e277b13811e74355c7a54a3cf5bc 100644 (file)
@@ -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));