Simplified use for sock:send.

This commit is contained in:
Diego Nehab
2005-01-27 21:30:01 +00:00
parent 2cd2a5d4a4
commit c5fefd5529
3 changed files with 16 additions and 3 deletions

View File

@ -90,9 +90,9 @@ int buf_meth_send(lua_State *L, p_buf buf) {
if (err != IO_DONE) {
lua_pushnil(L);
lua_pushstring(L, buf->io->error(buf->io->ctx, err));
lua_pushnumber(L, sent);
lua_pushnumber(L, sent+start-1);
} else {
lua_pushnumber(L, sent);
lua_pushnumber(L, sent+start-1);
lua_pushnil(L);
lua_pushnil(L);
}