From 8eb0abc9db4d47db5192bed18565e3d1aa53566d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Sat, 13 Jan 2024 18:10:50 -0300 Subject: Removed uses of LUA_NUMTAGS That constant was already deprecated (see commit 6aabf4b15e7). --- lstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index de02c91a..78146bdb 100644 --- a/lstate.c +++ b/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); -- cgit v1.2.3-55-g6feb