diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.201 2014/12/18 12:13:42 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.202 2015/01/16 16:54:37 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -291,7 +291,7 @@ static int lua_checkpc (lua_State *L, CallInfo *ci) { | |||
291 | else { | 291 | else { |
292 | Proto *p; | 292 | Proto *p; |
293 | if (L->status != LUA_YIELD || ci != L->ci) | 293 | if (L->status != LUA_YIELD || ci != L->ci) |
294 | p = ci_func(ci)->p; | 294 | p = clLvalue(ci->func)->p; |
295 | else /* real 'func' was saved in 'extra' field */ | 295 | else /* real 'func' was saved in 'extra' field */ |
296 | p = clLvalue(restorestack(L, ci->extra))->p; | 296 | p = clLvalue(restorestack(L, ci->extra))->p; |
297 | return p->code <= ci->u.l.savedpc && | 297 | return p->code <= ci->u.l.savedpc && |