diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-01-27 21:30:01 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-01-27 21:30:01 +0000 |
commit | c5fefd5529e2b611367bcd917bfc2024d260e144 (patch) | |
tree | 338473c806c530b45767906f08bc73e19b16513a /src | |
parent | 2cd2a5d4a4ca9307eacbd73bc6c591d635204a8a (diff) | |
download | luasocket-c5fefd5529e2b611367bcd917bfc2024d260e144.tar.gz luasocket-c5fefd5529e2b611367bcd917bfc2024d260e144.tar.bz2 luasocket-c5fefd5529e2b611367bcd917bfc2024d260e144.zip |
Simplified use for sock:send.
Diffstat (limited to 'src')
-rw-r--r-- | src/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index 1b1b791..0ec7b4d 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
@@ -90,9 +90,9 @@ int buf_meth_send(lua_State *L, p_buf buf) { | |||
90 | if (err != IO_DONE) { | 90 | if (err != IO_DONE) { |
91 | lua_pushnil(L); | 91 | lua_pushnil(L); |
92 | lua_pushstring(L, buf->io->error(buf->io->ctx, err)); | 92 | lua_pushstring(L, buf->io->error(buf->io->ctx, err)); |
93 | lua_pushnumber(L, sent); | 93 | lua_pushnumber(L, sent+start-1); |
94 | } else { | 94 | } else { |
95 | lua_pushnumber(L, sent); | 95 | lua_pushnumber(L, sent+start-1); |
96 | lua_pushnil(L); | 96 | lua_pushnil(L); |
97 | lua_pushnil(L); | 97 | lua_pushnil(L); |
98 | } | 98 | } |