From c6b442bd369ce05b3d4bfb95ba64451521aa1b31 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy <roberto@inf.puc-rio.br> Date: Fri, 17 Apr 2009 11:40:13 -0300 Subject: 'luaM_freearray' does not need array type as argument --- lmem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lmem.h') diff --git a/lmem.h b/lmem.h index 2ddde353..d1abcbb4 100644 --- a/lmem.h +++ b/lmem.h @@ -1,5 +1,5 @@ /* -** $Id: lmem.h,v 1.32 2006/09/14 18:42:28 roberto Exp roberto $ +** $Id: lmem.h,v 1.33 2007/02/09 13:04:52 roberto Exp roberto $ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ @@ -23,7 +23,7 @@ #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) -#define luaM_freearray(L, b, n, t) luaM_reallocv(L, (b), n, 0, sizeof(t)) +#define luaM_freearray(L, b, n) luaM_reallocv(L, (b), n, 0, sizeof((b)[0])) #define luaM_malloc(L,t) luaM_realloc_(L, NULL, 0, (t)) #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t))) -- cgit v1.2.3-55-g6feb