diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-20 22:19:54 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-20 22:19:54 +0000 |
commit | f7579db9e830ef41f422a280d26c9077f48728e5 (patch) | |
tree | d96affac7f5e8203d2e9c4a053213a992cd76650 /src/except.c | |
parent | 5dc5c3ebe8f111bba01762ca0f5edba912c4f0b9 (diff) | |
download | luasocket-f7579db9e830ef41f422a280d26c9077f48728e5.tar.gz luasocket-f7579db9e830ef41f422a280d26c9077f48728e5.tar.bz2 luasocket-f7579db9e830ef41f422a280d26c9077f48728e5.zip |
Fixing bugs...
Diffstat (limited to 'src/except.c')
-rw-r--r-- | src/except.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/except.c b/src/except.c index 68abf70..ad03817 100644 --- a/src/except.c +++ b/src/except.c | |||
@@ -29,7 +29,7 @@ static luaL_reg func[] = { | |||
29 | * Try factory | 29 | * Try factory |
30 | \*-------------------------------------------------------------------------*/ | 30 | \*-------------------------------------------------------------------------*/ |
31 | static int finalize(lua_State *L) { | 31 | static int finalize(lua_State *L) { |
32 | if (lua_isnil(L, 1) || (lua_isboolean(L, 1) && !lua_toboolean(L, 1))) { | 32 | if (!lua_toboolean(L, 1)) { |
33 | lua_pushvalue(L, lua_upvalueindex(1)); | 33 | lua_pushvalue(L, lua_upvalueindex(1)); |
34 | lua_pcall(L, 0, 0, 0); | 34 | lua_pcall(L, 0, 0, 0); |
35 | lua_settop(L, 2); | 35 | lua_settop(L, 2); |