Skip to content
Prev Previous commit
Next Next commit
Apply suggestion from @vstinner
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
colesbury and vstinner authored Feb 5, 2026
commit e3ae10ed8599c49dbdc212657a4ae555b36613b1
2 changes: 1 addition & 1 deletion Objects/funcobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1928,7 +1928,7 @@ PyStaticMethod_New(PyObject *callable)
if (sm == NULL) {
return NULL;
}
_PyObject_SetDeferredRefcount(sm);
_PyObject_SetDeferredRefcount((PyObject*)sm);
if (sm_set_callable(sm, callable) < 0) {
Py_DECREF(sm);
return NULL;
Expand Down
Loading