bugfix, error when use lua apicheck

This commit is contained in:
caijietao
2016-04-08 10:29:34 +08:00
parent 69b5bd8c13
commit 146f8ea09d
5 changed files with 5 additions and 5 deletions

View File

@@ -1163,7 +1163,7 @@ void luaV_execute (lua_State *L) {
oci->u.l.savedpc = nci->u.l.savedpc;
oci->callstatus |= CIST_TAIL; /* function was tail called */
ci = L->ci = oci; /* remove new frame */
lua_assert(L->top == oci->u.l.base + getproto(ofunc)->maxstacksize);
lua_assert(L->top == oci->u.l.base + getproto(ofunc)->sp->maxstacksize);
goto newframe; /* restart luaV_execute over new Lua function */
}
vmbreak;