Skip to content
Prev Previous commit
Next Next commit
Avoid name reuse.
  • Loading branch information
brandtbucher committed Nov 12, 2019
commit 58c96cfd13e0be55e9ae7f56fca3e9342200ebf9
8 changes: 4 additions & 4 deletions Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -3659,11 +3659,11 @@ starunpack_helper(struct compiler *c, asdl_seq *elts,
if (folded == NULL) {
return 0;
}
PyObject *elt;
PyObject *val;
for (i = 0; i < n; i++) {
elt = ((expr_ty)asdl_seq_GET(elts, i))->v.Constant.value;
Py_INCREF(elt);
PyTuple_SET_ITEM(folded, i, elt);
val = ((expr_ty)asdl_seq_GET(elts, i))->v.Constant.value;
Py_INCREF(val);
PyTuple_SET_ITEM(folded, i, val);
}
if (outer_op == BUILD_SET_UNPACK) {
Py_SETREF(folded, PyFrozenSet_New(folded));
Expand Down