mirror of
https://github.com/lua/lua
synced 2024-12-27 12:49:43 +03:00
mistake in change for multi-state (gc threshold was not corrected)
This commit is contained in:
parent
49af08e3e7
commit
2b3ea61342
4
lstate.c
4
lstate.c
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lstate.c,v 1.16 1999/11/10 15:39:35 roberto Exp roberto $
|
** $Id: lstate.c,v 1.17 1999/11/22 13:12:07 roberto Exp roberto $
|
||||||
** Global State
|
** Global State
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -51,8 +51,8 @@ lua_State *lua_newstate (void) {
|
|||||||
luaX_init(L);
|
luaX_init(L);
|
||||||
luaT_init(L);
|
luaT_init(L);
|
||||||
luaB_predefine(L);
|
luaB_predefine(L);
|
||||||
return L;
|
|
||||||
L->GCthreshold = L->nblocks*4;
|
L->GCthreshold = L->nblocks*4;
|
||||||
|
return L;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user