Skip to content

Commit 7d89766

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

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
@@ -1761,7 +1761,7 @@ sm_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
17611761
if (sm == NULL) {
17621762
return NULL;
17631763
}
1764-
_PyObject_SetDeferredRefcount(sm);
1764+
_PyObject_SetDeferredRefcount((PyObject*)sm);
17651765
if (sm_set_callable(sm, callable) < 0) {
17661766
Py_DECREF(sm);
17671767
return NULL;

0 commit comments

Comments
 (0)