summaryrefslogtreecommitdiffstats
path: root/Modules/_contextvarsmodule.c
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2018-09-21 19:33:56 (GMT)
committerGitHub <noreply@github.com>2018-09-21 19:33:56 (GMT)
commit2ec872b31e25cee1f983fe07991fb53f3fd1cbac (patch)
treeee3b5067dc9125be38d3a0ef0e5517a196f334aa /Modules/_contextvarsmodule.c
parentb46ad5431d2643f61e929c1ffec48766b2fafd75 (diff)
downloadcpython-2ec872b31e25cee1f983fe07991fb53f3fd1cbac.zip
cpython-2ec872b31e25cee1f983fe07991fb53f3fd1cbac.tar.gz
cpython-2ec872b31e25cee1f983fe07991fb53f3fd1cbac.tar.bz2
bpo-34762: Fix contextvars C API to use PyObject* pointer types. (GH-9473)
Diffstat (limited to 'Modules/_contextvarsmodule.c')
-rw-r--r--Modules/_contextvarsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_contextvarsmodule.c b/Modules/_contextvarsmodule.c
index b7d112d..71dd7fd 100644
--- a/Modules/_contextvarsmodule.c
+++ b/Modules/_contextvarsmodule.c
@@ -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();
}