summaryrefslogtreecommitdiffstats
path: root/Objects/genobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/genobject.c')
-rw-r--r--Objects/genobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/genobject.c b/Objects/genobject.c
index fdb3c03..c94a6ed 100644
--- a/Objects/genobject.c
+++ b/Objects/genobject.c
@@ -527,7 +527,7 @@ gen_set_name(PyGenObject *op, PyObject *value)
return -1;
}
Py_INCREF(value);
- Py_SETREF(op->gi_name, value);
+ Py_XSETREF(op->gi_name, value);
return 0;
}
@@ -549,7 +549,7 @@ gen_set_qualname(PyGenObject *op, PyObject *value)
return -1;
}
Py_INCREF(value);
- Py_SETREF(op->gi_qualname, value);
+ Py_XSETREF(op->gi_qualname, value);
return 0;
}