summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author“pengxuanzheng” <[email protected]>2022-07-14 09:32:39 +0000
committer“pengxuanzheng” <[email protected]>2022-07-14 09:32:39 +0000
commit96b60167ad8556589187623a70d96c13350b4582 (patch)
tree18a833be3f5f7a706c69403a53dea22b88b39514 /src
parentec4e7fabd65409545107f2e00324d982dbfe82ea (diff)
✨ feat: 预期与实际输出类型不符时,修改输出类型为实际输出类型
Diffstat (limited to 'src')
-rw-r--r--src/tsg_lua_func.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tsg_lua_func.cpp b/src/tsg_lua_func.cpp
index b305cd6..2d6345f 100644
--- a/src/tsg_lua_func.cpp
+++ b/src/tsg_lua_func.cpp
@@ -1402,6 +1402,7 @@ int tsg_lua_cache_exec(tsg_lua_handle L, size_t script_id, const char *in, size_
char err_buf[255];
sprintf((char *)err_buf, "expect out_type is:%zu, actual out_type is:%zu ", *out_type, actual_ret_type);
debuginfo(err_buf, __FILE__, __LINE__);
+ *out_type = actual_ret_type;
return_value = ERR_RETURN_TYPE_NOT_MATCH_EXPECT;
}