From 4d0935ec0ffed827aade5594216fae15bed7c6b5 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 7 Sep 2001 14:30:16 -0300 Subject: better definition for `luaM_freelem' --- lmem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lmem.h') diff --git a/lmem.h b/lmem.h index 5e33095c..1164e359 100644 --- a/lmem.h +++ b/lmem.h @@ -19,7 +19,7 @@ void *luaM_growaux (lua_State *L, void *block, int *size, int size_elem, int limit, const l_char *errormsg); #define luaM_free(L, b, s) luaM_realloc(L, (b), (s), 0) -#define luaM_freelem(L, b, t) luaM_realloc(L, (b), sizeof(t), 0) +#define luaM_freelem(L, b) luaM_realloc(L, (b), sizeof(*(b)), 0) #define luaM_freearray(L, b, n, t) luaM_realloc(L, (b), \ cast(lu_mem, n)*cast(lu_mem, sizeof(t)), 0) -- cgit v1.2.3-55-g6feb