blueloveTH 1 سال پیش
والد
کامیت
e14d4e295a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/interpreter/iter.cpp

+ 1 - 1
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();