diff options
author | Petr Viktorin <encukou@gmail.com> | 2019-06-03 01:08:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-03 01:08:14 +0200 |
commit | e584cbff1ea78e700cf9943d50467e3b58301ccc (patch) | |
tree | e3f64bee311c5dd2fd71e05211a0a2ca817fb291 /Modules | |
parent | c6789d6c85a290a35f3839efb52a3d34536dcebe (diff) | |
download | cpython-git-e584cbff1ea78e700cf9943d50467e3b58301ccc.tar.gz |
bpo-36027 bpo-36974: Fix "incompatible pointer type" compiler warnings (GH-13758)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_testcapimodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index eed34c9802..40e0826ce1 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -5854,7 +5854,7 @@ MethodDescriptor_vectorcall(PyObject *callable, PyObject *const *args, static PyObject * MethodDescriptor_new(PyTypeObject* type, PyObject* args, PyObject *kw) { - MethodDescriptorObject *op = type->tp_alloc(type, 0); + MethodDescriptorObject *op = (MethodDescriptorObject *)type->tp_alloc(type, 0); op->vectorcall = MethodDescriptor_vectorcall; return (PyObject *)op; } |