bpo-34762: Fix contextvars C API to use PyObject* pointer types. (GH-9473)

This commit is contained in:
Yury Selivanov 2018-09-21 15:33:56 -04:00 committed by GitHub
parent b46ad5431d
commit 2ec872b31e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 106 additions and 45 deletions

View file

@ -16,7 +16,7 @@ static PyObject *
_contextvars_copy_context_impl(PyObject *module)
/*[clinic end generated code: output=1fcd5da7225c4fa9 input=89bb9ae485888440]*/
{
return (PyObject *)PyContext_CopyCurrent();
return PyContext_CopyCurrent();
}