summaryrefslogtreecommitdiffstats
path: root/Objects/setobject.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-01-21 22:33:43 (GMT)
committerGitHub <noreply@github.com>2022-01-21 22:33:43 (GMT)
commitac1f152421fab3ac854fe4565c575b306e2bb4b5 (patch)
tree90014ae2e0e269f96472fdec37a9d88a4fed010b /Objects/setobject.c
parent7835cbf949c413a746324721a352cc72670a8a36 (diff)
downloadcpython-ac1f152421fab3ac854fe4565c575b306e2bb4b5.zip
cpython-ac1f152421fab3ac854fe4565c575b306e2bb4b5.tar.gz
cpython-ac1f152421fab3ac854fe4565c575b306e2bb4b5.tar.bz2
bpo-46417: Use _PyType_CAST() in Objects directory (GH-30764)
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r--Objects/setobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 6e110ef..ca3cfe8 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -1001,7 +1001,7 @@ make_new_frozenset(PyTypeObject *type, PyObject *iterable)
Py_INCREF(iterable);
return iterable;
}
- return make_new_set((PyTypeObject *)type, iterable);
+ return make_new_set(type, iterable);
}
static PyObject *
@@ -1036,7 +1036,7 @@ frozenset_vectorcall(PyObject *type, PyObject * const*args,
}
PyObject *iterable = (nargs ? args[0] : NULL);
- return make_new_frozenset((PyTypeObject *)type, iterable);
+ return make_new_frozenset(_PyType_CAST(type), iterable);
}
static PyObject *
@@ -1974,10 +1974,10 @@ set_vectorcall(PyObject *type, PyObject * const*args,
}
if (nargs) {
- return make_new_set((PyTypeObject *)type, args[0]);
+ return make_new_set(_PyType_CAST(type), args[0]);
}
- return make_new_set((PyTypeObject *)type, NULL);
+ return make_new_set(_PyType_CAST(type), NULL);
}
static PySequenceMethods set_as_sequence = {