From ea9955755ff9e35f5acfdeefee20ea87d4d9a31d Mon Sep 17 00:00:00 2001 From: “pengxuanzheng” Date: Wed, 19 Jan 2022 11:24:16 +0000 Subject: 🧪 test: 增加googletest源码 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_lua_func.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/tsg_lua_func.cpp b/src/tsg_lua_func.cpp index dd18a68..f59fbbc 100644 --- a/src/tsg_lua_func.cpp +++ b/src/tsg_lua_func.cpp @@ -695,7 +695,7 @@ int tsg_lua_exec_file(tsg_lua_handle lua, const char *script, const char *in, si *out_type = BOOLEAN; break; case LUA_TNUMBER: - *(long size_t *)out = lua_tointeger(L, -1); + *(long *)out = lua_tointeger(L, -1); //*out_len = 8; *out_type = INTEGER; break; -- cgit v1.2.3