mirror of https://github.com/python/cpython
Fix downcast compiler warning in Modules/_testcapi/vectorcall.c (#95729)
This commit is contained in:
parent
32b49f613a
commit
0c14f07256
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue