summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2019-06-03 01:08:14 +0200
committerGitHub <noreply@github.com>2019-06-03 01:08:14 +0200
commite584cbff1ea78e700cf9943d50467e3b58301ccc (patch)
treee3f64bee311c5dd2fd71e05211a0a2ca817fb291 /Modules
parentc6789d6c85a290a35f3839efb52a3d34536dcebe (diff)
downloadcpython-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.c2
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;
}