diff options
Diffstat (limited to 'core/src/xmake/io/socket_send.c')
| -rw-r--r-- | core/src/xmake/io/socket_send.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/xmake/io/socket_send.c b/core/src/xmake/io/socket_send.c index 71c057de8..5d697f3e4 100644 --- a/core/src/xmake/io/socket_send.c +++ b/core/src/xmake/io/socket_send.c @@ -78,7 +78,7 @@ tb_int_t xm_io_socket_send(lua_State* lua) if (!data || !size) { lua_pushinteger(lua, -1); - lua_pushfstring(lua, "invalid data(%p) and size(%zu)!", data, size); + lua_pushfstring(lua, "invalid data(%p) and size(%d)!", data, (tb_int_t)size); return 2; } @@ -88,7 +88,7 @@ tb_int_t xm_io_socket_send(lua_State* lua) if (start < 1 || start > size) { lua_pushinteger(lua, -1); - lua_pushfstring(lua, "invalid start position(%ld)!", start); + lua_pushfstring(lua, "invalid start position(%d)!", (tb_int_t)start); return 2; } @@ -98,7 +98,7 @@ tb_int_t xm_io_socket_send(lua_State* lua) if (last < start - 1 || last > size + start - 1) { lua_pushinteger(lua, -1); - lua_pushfstring(lua, "invalid last position(%ld)!", last); + lua_pushfstring(lua, "invalid last position(%d)!", (tb_int_t)last); return 2; } |
