Skip to content

Commit b285594

Browse files
Update Objects/genobject.c
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
1 parent ac3974d commit b285594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/genobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ gen_send(PyObject *op, PyObject *arg)
364364
{
365365
PyObject *result;
366366
PyGenObject *gen = _PyGen_CAST(op);
367-
if (gen_send_ex(_PyGen_CAST(op), arg, &result) == PYGEN_RETURN) {
367+
if (gen_send_ex(gen, arg, &result) == PYGEN_RETURN) {
368368
return gen_set_stop_iteration(gen, result);
369369
}
370370
return result;

0 commit comments

Comments
 (0)