diff options
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 2.120 2014/06/10 19:18:50 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 2.121 2014/06/11 16:01:55 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -492,7 +492,7 @@ static int recover (lua_State *L, int status) { | |||
492 | luaF_close(L, oldtop); | 492 | luaF_close(L, oldtop); |
493 | seterrorobj(L, status, oldtop); | 493 | seterrorobj(L, status, oldtop); |
494 | L->ci = ci; | 494 | L->ci = ci; |
495 | L->allowhook = (ci->callstatus & CIST_OAH); | 495 | L->allowhook = getoah(ci->callstatus); /* restore original 'allowhook' */ |
496 | L->nny = 0; /* should be zero to be yieldable */ | 496 | L->nny = 0; /* should be zero to be yieldable */ |
497 | luaD_shrinkstack(L); | 497 | luaD_shrinkstack(L); |
498 | L->errfunc = ci->u.c.old_errfunc; | 498 | L->errfunc = ci->u.c.old_errfunc; |