diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-17 00:18:48 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-17 00:18:48 +0000 |
commit | 80b7acea2eb19f7facddce17733b88cb50a56cea (patch) | |
tree | 3b2354627dd2a178e0a66f3c9ab2181405381aec /src/select.c | |
parent | 27c8ae30aaef25d537669062d5f7f929eec18032 (diff) | |
download | luasocket-80b7acea2eb19f7facddce17733b88cb50a56cea.tar.gz luasocket-80b7acea2eb19f7facddce17733b88cb50a56cea.tar.bz2 luasocket-80b7acea2eb19f7facddce17733b88cb50a56cea.zip |
Compiled and tested on Windows...
Diffstat (limited to 'src/select.c')
-rw-r--r-- | src/select.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/select.c b/src/select.c index 13f9d6e..49730d1 100644 --- a/src/select.c +++ b/src/select.c | |||
@@ -71,8 +71,6 @@ static int global_select(lua_State *L) { | |||
71 | lua_pushstring(L, "timeout"); | 71 | lua_pushstring(L, "timeout"); |
72 | return 3; | 72 | return 3; |
73 | } else { | 73 | } else { |
74 | lua_pushnil(L); | ||
75 | lua_pushnil(L); | ||
76 | lua_pushstring(L, "error"); | 74 | lua_pushstring(L, "error"); |
77 | return 3; | 75 | return 3; |
78 | } | 76 | } |
@@ -89,7 +87,7 @@ static int getfd(lua_State *L) { | |||
89 | lua_pushvalue(L, -2); | 87 | lua_pushvalue(L, -2); |
90 | lua_call(L, 1, 1); | 88 | lua_call(L, 1, 1); |
91 | if (lua_isnumber(L, -1)) | 89 | if (lua_isnumber(L, -1)) |
92 | fd = lua_tonumber(L, -1); | 90 | fd = (int) lua_tonumber(L, -1); |
93 | } | 91 | } |
94 | lua_pop(L, 1); | 92 | lua_pop(L, 1); |
95 | return fd; | 93 | return fd; |