diff options
author | Yury Selivanov <yury@magic.io> | 2018-09-27 18:55:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-27 18:55:55 (GMT) |
commit | 994269ccee5574f03cda6b018399347fc52bf330 (patch) | |
tree | cfbe48e07cd233b9f7899a81cb64dba35a8cb0d2 /Modules/_decimal/_decimal.c | |
parent | 3f22811fef73aec848d961593d95fa877f77ecbf (diff) | |
download | cpython-994269ccee5574f03cda6b018399347fc52bf330.zip cpython-994269ccee5574f03cda6b018399347fc52bf330.tar.gz cpython-994269ccee5574f03cda6b018399347fc52bf330.tar.bz2 |
bpo-34762: Update PyContext* to PyObject* in asyncio and decimal (GH-9609)
This fixes various compiler warnings.
Diffstat (limited to 'Modules/_decimal/_decimal.c')
-rw-r--r-- | Modules/_decimal/_decimal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c index 5bce780..1e58d3d 100644 --- a/Modules/_decimal/_decimal.c +++ b/Modules/_decimal/_decimal.c @@ -122,7 +122,7 @@ incr_false(void) } -static PyContextVar *current_context_var; +static PyObject *current_context_var; /* Template for creating new thread contexts, calling Context() without * arguments and initializing the module_context on first access. */ @@ -1500,7 +1500,7 @@ init_current_context(void) } CTX(tl_context)->status = 0; - PyContextToken *tok = PyContextVar_Set(current_context_var, tl_context); + PyObject *tok = PyContextVar_Set(current_context_var, tl_context); if (tok == NULL) { Py_DECREF(tl_context); return NULL; @@ -1561,7 +1561,7 @@ PyDec_SetCurrentContext(PyObject *self UNUSED, PyObject *v) Py_INCREF(v); } - PyContextToken *tok = PyContextVar_Set(current_context_var, v); + PyObject *tok = PyContextVar_Set(current_context_var, v); Py_DECREF(v); if (tok == NULL) { return NULL; |