diff options
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); |