aboutsummaryrefslogtreecommitdiff
path: root/src/except.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/except.c')
-rw-r--r--src/except.c2
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\*-------------------------------------------------------------------------*/
31static int finalize(lua_State *L) { 31static 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);