diff options
| author | ruki <[email protected]> | 2025-05-30 14:40:54 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-30 14:40:54 +0800 |
| commit | 365df4ea412f98cdd48ebda71f2b2bbf49391445 (patch) | |
| tree | 4e9a7f7327941ac91b3c1b70d6f7f1540773436f /core/src/xmake/libc/dataptr.c | |
| parent | c5b5179e065a546a273861b4f2d6b43d1cbbbc5d (diff) | |
| parent | c03f29da89ba296449a2f5be8b2a18e7d6ad09cc (diff) | |
Merge pull request #6512 from Freed-Wu/tb_long_t
fix compile error for i386 and armv7l #6503
Diffstat (limited to 'core/src/xmake/libc/dataptr.c')
| -rw-r--r-- | core/src/xmake/libc/dataptr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
