summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 7b07475..c83743d 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3236,7 +3236,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
Py_INCREF(self);
func = PyMethod_GET_FUNCTION(func);
Py_INCREF(func);
- Py_SETREF(*pfunc, self);
+ Py_XSETREF(*pfunc, self);
na++;
/* n++; */
} else
@@ -4491,7 +4491,7 @@ _PyEval_SetCoroutineWrapper(PyObject *wrapper)
PyThreadState *tstate = PyThreadState_GET();
Py_XINCREF(wrapper);
- Py_SETREF(tstate->coroutine_wrapper, wrapper);
+ Py_XSETREF(tstate->coroutine_wrapper, wrapper);
}
PyObject *
@@ -4747,7 +4747,7 @@ call_function(PyObject ***pp_stack, int oparg
Py_INCREF(self);
func = PyMethod_GET_FUNCTION(func);
Py_INCREF(func);
- Py_SETREF(*pfunc, self);
+ Py_XSETREF(*pfunc, self);
na++;
n++;
} else