summaryrefslogtreecommitdiff
path: root/core/src/xmake/io/socket_open.c
diff options
context:
space:
mode:
authorruki <[email protected]>2020-08-04 22:45:20 +0800
committerruki <[email protected]>2020-08-04 22:45:20 +0800
commit81c072eaa6eadde5f6427e0109226a7fa04691b0 (patch)
tree7243963c4614209145b441144093889fface5102 /core/src/xmake/io/socket_open.c
parent8b08fbb9f5f0f54dd1232f4bf387932116dde47f (diff)
improve pushpointer
Diffstat (limited to 'core/src/xmake/io/socket_open.c')
-rw-r--r--core/src/xmake/io/socket_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/io/socket_open.c b/core/src/xmake/io/socket_open.c
index 48eb4ca43..fffbaea6e 100644
--- a/core/src/xmake/io/socket_open.c
+++ b/core/src/xmake/io/socket_open.c
@@ -64,7 +64,7 @@ tb_int_t xm_io_socket_open(lua_State* lua)
// init socket
tb_socket_ref_t sock = tb_socket_init(socktype, family);
- if (sock) lua_pushlightuserdata(lua, (tb_pointer_t)sock);
+ if (sock) xm_lua_pushpointer(lua, (tb_pointer_t)sock);
else lua_pushnil(lua);
return 1;
}