[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.4.0 (work2) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 23 Oct 2018 12:56:38 -0300
> From lmem.c:
>
> void luaM_free_ (lua_State *L, void *block, size_t osize) {
> global_State *g = G(L);
> lua_assert((block == 0) == (block == NULL));
> (*g->frealloc)(g->ud, block, osize, 0);
> g->GCdebt -= osize;
> }
>
> The lua_assert should (probably) be:
>
> lua_assert((osize == 0) == (block == NULL));
Sure. Many thanks,
-- Roberto