mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
Removed uses of LUA_NUMTAGS
That constant was already deprecated (see commit 6aabf4b15e).
This commit is contained in:
parent
d862da6d04
commit
8eb0abc9db
4 changed files with 4 additions and 6 deletions
2
lstate.c
2
lstate.c
|
|
@ -371,7 +371,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud, unsigned int seed) {
|
|||
setgcparam(g, MINORMUL, LUAI_GENMINORMUL);
|
||||
setgcparam(g, MINORMAJOR, LUAI_MINORMAJOR);
|
||||
setgcparam(g, MAJORMINOR, LUAI_MAJORMINOR);
|
||||
for (i=0; i < LUA_NUMTAGS; i++) g->mt[i] = NULL;
|
||||
for (i=0; i < LUA_NUMTYPES; i++) g->mt[i] = NULL;
|
||||
if (luaD_rawrunprotected(L, f_luaopen, NULL) != LUA_OK) {
|
||||
/* memory allocation error: free partial state */
|
||||
close_state(L);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue