Skip to content

Commit 0c14f07

Browse files
Fix downcast compiler warning in Modules/_testcapi/vectorcall.c (#95729)
1 parent 32b49f6 commit 0c14f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_testcapi/vectorcall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ _testcapi_make_vectorcall_class_impl(PyObject *module, PyTypeObject *base)
214214
VectorCallClass_members[0].offset = base->tp_basicsize;
215215
PyType_Spec spec = {
216216
.name = "_testcapi.VectorcallClass",
217-
.basicsize = base->tp_basicsize + (int)sizeof(vectorcallfunc),
217+
.basicsize = (int)(base->tp_basicsize + sizeof(vectorcallfunc)),
218218
.flags = Py_TPFLAGS_DEFAULT
219219
| Py_TPFLAGS_HAVE_VECTORCALL
220220
| Py_TPFLAGS_BASETYPE,

0 commit comments

Comments
 (0)