summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend.aasland@protonmail.com>2022-08-08 08:58:29 (GMT)
committerGitHub <noreply@github.com>2022-08-08 08:58:29 (GMT)
commit0c14f07256ffc53e2bd0fe68e48db9dfc90dd5dc (patch)
tree7c1d58eb1d902cdd93f8e78e8a961ce0c6ac1a91 /Modules
parent32b49f613afefe351b38ce42466a856c1df07544 (diff)
downloadcpython-0c14f07256ffc53e2bd0fe68e48db9dfc90dd5dc.zip
cpython-0c14f07256ffc53e2bd0fe68e48db9dfc90dd5dc.tar.gz
cpython-0c14f07256ffc53e2bd0fe68e48db9dfc90dd5dc.tar.bz2
Fix downcast compiler warning in Modules/_testcapi/vectorcall.c (#95729)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_testcapi/vectorcall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testcapi/vectorcall.c b/Modules/_testcapi/vectorcall.c
index 21846f9..626706e 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,