This commit is contained in:
Cloud Wu
2019-11-11 17:16:06 +08:00
committed by 云风
parent 9d7ea09789
commit 80d1082b42
2 changed files with 2 additions and 2 deletions

View File

@@ -537,7 +537,7 @@ get_buffer(lua_State *L, int index, struct socket_sendbuffer *buf) {
if (lua_isinteger(L, index+1)) {
buf->sz = lua_tointeger(L, index+1);
} else {
buf->sz = lua_rawlen(L, index+1);
buf->sz = lua_rawlen(L, index);
}
break;
case LUA_TLIGHTUSERDATA: {

View File

@@ -58,7 +58,7 @@
#define WARNING_SIZE (1024*1024)
#define USEROBJECT ((size_t)(~0))
#define USEROBJECT ((size_t)(-1))
struct write_buffer {
struct write_buffer * next;