Fix downcast compiler warning in Modules/_testcapi/vectorcall.c (#95729)

This commit is contained in:
Erlend E. Aasland 2022-08-08 10:58:29 +02:00 committed by GitHub
parent 32b49f613a
commit 0c14f07256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ _testcapi_make_vectorcall_class_impl(PyObject *module, PyTypeObject *base)
VectorCallClass_members[0].offset = base->tp_basicsize;
PyType_Spec spec = {
.name = "_testcapi.VectorcallClass",
.basicsize = base->tp_basicsize + (int)sizeof(vectorcallfunc),
.basicsize = (int)(base->tp_basicsize + sizeof(vectorcallfunc)),
.flags = Py_TPFLAGS_DEFAULT
| Py_TPFLAGS_HAVE_VECTORCALL
| Py_TPFLAGS_BASETYPE,