From ea1322ef5438aa38f16fa00d3ab377811bba5a76 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 23 Oct 2018 12:58:38 -0300 Subject: [PATCH] Detail: bad assertion in 'luaM_free_' --- lmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lmem.c b/lmem.c index 77518707..53f8dcb9 100644 --- a/lmem.c +++ b/lmem.c @@ -108,7 +108,7 @@ l_noret luaM_toobig (lua_State *L) { */ void luaM_free_ (lua_State *L, void *block, size_t osize) { global_State *g = G(L); - lua_assert((block == 0) == (block == NULL)); + lua_assert((osize == 0) == (block == NULL)); (*g->frealloc)(g->ud, block, osize, 0); g->GCdebt -= osize; }