diff options
| author | Victor Stinner <vstinner@python.org> | 2022-11-26 00:30:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-26 00:30:37 +0100 |
| commit | 5556d3e02ca841b82b1eb42cc3974e0a3bbffaac (patch) | |
| tree | 6130a8120ec5a36fd739d38047a4372f9ab30925 /Objects/typeobject.c | |
| parent | ae234fbc5ce045066448f2f0cda2f1c3c7ddebea (diff) | |
| download | cpython-git-5556d3e02ca841b82b1eb42cc3974e0a3bbffaac.tar.gz | |
gh-98724: Fix warnings on Py_SETREF() usage (#99781)
Cast argument to the expected type.
Diffstat (limited to 'Objects/typeobject.c')
| -rw-r--r-- | Objects/typeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index ad8a936fa7..b993aa405f 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -9593,7 +9593,7 @@ super_init_impl(PyObject *self, PyTypeObject *type, PyObject *obj) { return -1; Py_INCREF(obj); } - Py_XSETREF(su->type, Py_NewRef(type)); + Py_XSETREF(su->type, (PyTypeObject*)Py_NewRef(type)); Py_XSETREF(su->obj, obj); Py_XSETREF(su->obj_type, obj_type); return 0; |
