mirror of
https://github.com/lua/lua
synced 2024-12-24 03:16:50 +03:00
small bug: basic `ci' must have a valid func (base - 1)
This commit is contained in:
parent
0b3d380f9f
commit
8b2b8790b5
3
lstate.c
3
lstate.c
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: lstate.c,v 1.99 2002/07/16 14:26:56 roberto Exp roberto $
|
||||
** $Id: lstate.c,v 1.100 2002/08/05 17:36:24 roberto Exp roberto $
|
||||
** Global State
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@ -42,6 +42,7 @@ static void stack_init (lua_State *L, lua_State *OL) {
|
||||
L->base_ci = luaM_newvector(OL, BASIC_CI_SIZE, CallInfo);
|
||||
L->ci = L->base_ci;
|
||||
L->ci->pc = NULL; /* not a Lua function */
|
||||
setnilvalue(L->top++); /* `function' entry for this `ci' */
|
||||
L->ci->base = L->top;
|
||||
L->ci->top = L->top + LUA_MINSTACK;
|
||||
L->size_ci = BASIC_CI_SIZE;
|
||||
|
Loading…
Reference in New Issue
Block a user