blueloveTH hace 1 año
padre
commit
e14d4e295a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/interpreter/iter.cpp

+ 1 - 1
src/interpreter/iter.cpp

@@ -77,7 +77,7 @@ PyVar Generator::next(VM* vm) {
         throw;
         throw;
     }
     }
 
 
-    if(ret->type == tp_op_yield) {
+    if(ret.type == tp_op_yield) {
         // backup the context
         // backup the context
         lf = vm->callstack.popx();
         lf = vm->callstack.popx();
         ret = vm->s_data.popx();
         ret = vm->s_data.popx();