mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-36027 bpo-36974: Fix "incompatible pointer type" compiler warnings (GH-13758)
This commit is contained in:
parent
c6789d6c85
commit
e584cbff1e
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue