[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.4.2 (lua_newstate)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 9 Nov 2020 13:48:22 -0300
> - for (i=0; i < LUA_NUMTAGS; i++) g->mt[i] = NULL;
> + memset(g->mt, 0, sizeof(struct Table *) * (size_t) LUA_NUMTAGS);
No. The C standard says that NULL does not need to have all bits zero.