Skip to content

Commit e3ae10e

Browse files
colesburyvstinner
andauthored
Apply suggestion from @vstinner
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 7d89766 commit e3ae10e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/funcobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1928,7 +1928,7 @@ PyStaticMethod_New(PyObject *callable)
19281928
if (sm == NULL) {
19291929
return NULL;
19301930
}
1931-
_PyObject_SetDeferredRefcount(sm);
1931+
_PyObject_SetDeferredRefcount((PyObject*)sm);
19321932
if (sm_set_callable(sm, callable) < 0) {
19331933
Py_DECREF(sm);
19341934
return NULL;

0 commit comments

Comments
 (0)