Browse Source

修复了call class无返回值的bug

SongZihuan 5 years ago
parent
commit
e20fc777de
2 changed files with 3 additions and 0 deletions
  1. BIN
      gwarf
  2. 3 0
      gwarf_interpreter/interpreter.c

BIN
gwarf


+ 3 - 0
gwarf_interpreter/interpreter.c

@@ -1257,6 +1257,9 @@ GWARF_result call_back(statement *the_statement, var_list *the_var){  // the fun
         GWARF_value tmp;
         tmp.type = OBJECT_value;
         tmp.value.object_value = object_tmp;
+
+        result.u = return_def;
+        result.value = tmp;
     }
     return result;
 }