summaryrefslogtreecommitdiff
path: root/core/src/xmake
diff options
context:
space:
mode:
authorc8ef <[email protected]>2024-05-10 19:34:18 +0800
committerGitHub <[email protected]>2024-05-10 19:34:18 +0800
commit53bb19cfe6d467bb129da1fcecdafee818b14bf4 (patch)
tree1a430345b62edaab213fe94ff307146aee8e45f4 /core/src/xmake
parent5222bab42ed838fc96656276bb7d0a7906b65699 (diff)
Update ansi.c
Diffstat (limited to 'core/src/xmake')
-rw-r--r--core/src/xmake/winos/ansi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/winos/ansi.c b/core/src/xmake/winos/ansi.c
index c24f98b2e..ee86d13ea 100644
--- a/core/src/xmake/winos/ansi.c
+++ b/core/src/xmake/winos/ansi.c
@@ -107,7 +107,7 @@ tb_int_t xm_winos_cp_info(lua_State* lua)
lua_pushliteral(lua, "name");
tb_char_t* namebuf = tb_malloc_cstr(sizeof(cp_info.CodePageName) * 2);
tb_assert_and_check_return_val(namebuf, 0);
- tb_size_t namelen = tb_wtoa(namebuf, cp_info.CodePageName, sizeof(cp_info.CodePageName) * 2);
+ tb_size_t namelen = tb_wtoa(namebuf, (const tb_wchar_t *)cp_info.CodePageName, sizeof(cp_info.CodePageName) * 2);
tb_assert_and_check_return_val(namelen < sizeof(cp_info.CodePageName) * 2, 0);
lua_pushlstring(lua, namebuf, namelen);
tb_free(namebuf);