From e14d4e295aa3b707125faf21b0a6eb1939b90089 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 16 Jun 2024 20:16:41 +0800 Subject: [PATCH] some fix --- src/interpreter/iter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interpreter/iter.cpp b/src/interpreter/iter.cpp index cac1db54..4f30bfc2 100644 --- a/src/interpreter/iter.cpp +++ b/src/interpreter/iter.cpp @@ -77,7 +77,7 @@ PyVar Generator::next(VM* vm) { throw; } - if(ret->type == tp_op_yield) { + if(ret.type == tp_op_yield) { // backup the context lf = vm->callstack.popx(); ret = vm->s_data.popx();