Skip to content
Snippets Groups Projects
Commit 4905869b authored by neil's avatar neil
Browse files

Fix typo of mine while removing warning

git-svn-id: http://svn.net-core.org/repos/t-engine4@623 51575b47-30f0-44d4-a5cc-537603b46e54
parent f019fb6b
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ int buffer_meth_send(lua_State *L, p_buffer buf) {
const char *data = luaL_checklstring(L, 2, &size);
long start = (long) luaL_optnumber(L, 3, 1);
long end = (long) luaL_optnumber(L, 4, -1);
#ifndef LUASOCKET_DEBUG
#ifdef LUASOCKET_DEBUG
p_timeout tm = timeout_markstart(buf->tm);
#endif
if (start < 0) start = (long) (size+start+1);
......@@ -113,7 +113,7 @@ int buffer_meth_receive(lua_State *L, p_buffer buf) {
luaL_Buffer b;
size_t size;
const char *part = luaL_optlstring(L, 3, "", &size);
#ifndef LUASOCKET_DEBUG
#ifdef LUASOCKET_DEBUG
p_timeout tm = timeout_markstart(buf->tm);
#endif
/* initialize buffer with optional extra prefix
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment