From d671c2d18649bf0592b785bfe4b26d9114fe671b Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 28 May 2025 00:50:27 +0800 Subject: fix compile error for armv7 #6503 --- core/src/xmake/libc/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/xmake/libc/malloc.c b/core/src/xmake/libc/malloc.c index ae13547a3..8a12cdc48 100644 --- a/core/src/xmake/libc/malloc.c +++ b/core/src/xmake/libc/malloc.c @@ -42,7 +42,7 @@ tb_int_t xm_libc_malloc(lua_State* lua) tb_pointer_t data = tb_null; tb_long_t size = (tb_long_t)luaL_checkinteger(lua, 1); if (size > 0) data = tb_malloc(size); - lua_pushinteger(lua, (lua_Integer)data); + lua_pushinteger(lua, (lua_Integer)(tb_long_t)data); return 1; } -- cgit v1.3.1