Skip to content

Commit 1474acb

Browse files
fix declaration
1 parent dba67de commit 1474acb

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Objects/genobject.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,8 +2047,9 @@ async_gen_asend_send(PyObject *self, PyObject *arg)
20472047
arg = o->ags_sendval;
20482048
}
20492049

2050+
PyObject *result;
20502051
do_send:
2051-
PyObject *result = gen_send((PyObject*)o->ags_gen, arg);
2052+
result = gen_send((PyObject*)o->ags_gen, arg);
20522053
result = async_gen_unwrap_value(o->ags_gen, result);
20532054

20542055
if (result == NULL) {
@@ -2111,8 +2112,9 @@ async_gen_asend_throw(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
21112112
return NULL;
21122113
}
21132114

2115+
PyObject *result;
21142116
do_throw:
2115-
PyObject *result = gen_throw((PyObject*)o->ags_gen, args, nargs);
2117+
result = gen_throw((PyObject*)o->ags_gen, args, nargs);
21162118
result = async_gen_unwrap_value(o->ags_gen, result);
21172119

21182120
if (result == NULL) {
@@ -2537,8 +2539,9 @@ async_gen_athrow_throw(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
25372539
return NULL;
25382540
}
25392541

2542+
PyObject *retval;
25402543
do_throw:
2541-
PyObject *retval = gen_throw((PyObject*)o->agt_gen, args, nargs);
2544+
retval = gen_throw((PyObject*)o->agt_gen, args, nargs);
25422545
if (o->agt_typ) {
25432546
retval = async_gen_unwrap_value(o->agt_gen, retval);
25442547
if (retval == NULL) {

0 commit comments

Comments
 (0)