diff options
| -rw-r--r-- | core/src/xmake/libc/malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
