瀏覽代碼

fix: 修复newObjectSetting的bug

写入变量__name__时的值误带str_前缀
SongZihuan 4 年之前
父節點
當前提交
6487e2263e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      VirtulMathCore/src/__run.c

+ 2 - 2
VirtulMathCore/src/__run.c

@@ -302,7 +302,7 @@ void addStrVar(wchar_t *name, bool free_old, bool setting, LinkValue *value, fli
     wchar_t *var_name = setStrVarName(name, free_old, inter);
     setResultCore(result);
 
-    makeStringValue(var_name, line, file, CALL_INTER_FUNCTIONSIG_NOT_ST(var_list, result, belong));
+    makeStringValue(name, line, file, CALL_INTER_FUNCTIONSIG_NOT_ST(var_list, result, belong));
     if (!CHECK_RESULT(result))
         goto return_;
 
@@ -329,7 +329,7 @@ bool addAttributes(wchar_t *name, bool free_old, LinkValue *value, fline line, c
     LinkValue *name_;
     setResultCore(result);
 
-    makeStringValue(var_name, line, file, CALL_INTER_FUNCTIONSIG_NOT_ST(var_list, result, belong));
+    makeStringValue(name, line, file, CALL_INTER_FUNCTIONSIG_NOT_ST(var_list, result, belong));
     if (!CHECK_RESULT(result))
         goto return_;