[Python-checkins] Fix downcast compiler warning in Modules/_testcapi/vectorcall.c (#95729)
encukou
webhook-mailer at python.org
Mon Aug 8 04:59:12 EDT 2022
https://github.com/python/cpython/commit/0c14f07256ffc53e2bd0fe68e48db9dfc90dd5dc
commit: 0c14f07256ffc53e2bd0fe68e48db9dfc90dd5dc
branch: main
author: Erlend E. Aasland <erlend.aasland at protonmail.com>
committer: encukou <encukou at gmail.com>
date: 2022-08-08T10:58:29+02:00
summary:
Fix downcast compiler warning in Modules/_testcapi/vectorcall.c (#95729)
files:
M Modules/_testcapi/vectorcall.c
diff --git a/Modules/_testcapi/vectorcall.c b/Modules/_testcapi/vectorcall.c
index 21846f97ff81..626706eafab5 100644
--- a/Modules/_testcapi/vectorcall.c
+++ b/Modules/_testcapi/vectorcall.c
@@ -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,
More information about the Python-checkins
mailing list