Removed uses of LUA_NUMTAGS

That constant was already deprecated (see commit 6aabf4b15e).
This commit is contained in:
Roberto Ierusalimschy
2024-01-13 18:10:50 -03:00
parent d862da6d04
commit 8eb0abc9db
4 changed files with 4 additions and 6 deletions

View File

@@ -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);