lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>  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