From c03f29da89ba296449a2f5be8b2a18e7d6ad09cc Mon Sep 17 00:00:00 2001 From: "Wu, Zhenyu" Date: Fri, 30 May 2025 00:08:21 +0800 Subject: fix compile error for i386 and armv7l #6503 --- core/src/xmake/libc/dataptr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src') diff --git a/core/src/xmake/libc/dataptr.c b/core/src/xmake/libc/dataptr.c index d8d6c6f0d..7c5d0533c 100644 --- a/core/src/xmake/libc/dataptr.c +++ b/core/src/xmake/libc/dataptr.c @@ -46,7 +46,7 @@ tb_int_t xm_libc_dataptr(lua_State* lua) else if (xm_lua_ispointer(lua, 1)) data = (tb_pointer_t)xm_lua_topointer(lua, 1); else xm_libc_return_error(lua, "libc.dataptr(invalid data)!"); - lua_pushinteger(lua, (lua_Integer)data); + lua_pushinteger(lua, (lua_Integer)(tb_long_t)data); return 1; } -- cgit v1.3.1