commit | 4a1e70fc31d224786a32f950edaf73c8ea9c194d | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sun Dec 27 12:36:18 2015 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sun Dec 27 12:36:18 2015 +0200 |
tree | 2000711f6cd68f009e4859ce3f9e1e9fe0a1f76e | |
parent | a5892abf235c67cf8e75b7fcef65e6aebe701d4c [diff] [blame] |
Issue #20440: Applied yet one patch for using Py_SETREF. The patch is automatically generated, it replaces the code that uses Py_CLEAR.
diff --git a/Python/ceval.c b/Python/ceval.c index 5fa555e..786adbf 100644 --- a/Python/ceval.c +++ b/Python/ceval.c
@@ -4410,10 +4410,8 @@ { PyThreadState *tstate = PyThreadState_GET(); - Py_CLEAR(tstate->coroutine_wrapper); - Py_XINCREF(wrapper); - tstate->coroutine_wrapper = wrapper; + Py_SETREF(tstate->coroutine_wrapper, wrapper); } PyObject *