From eb45f3a9b6cb1faa18bd552ae97e9679a4936361 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 19 Dec 2014 15:26:14 -0200 Subject: details in 'luaM_reallocvchar' --- lmem.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lmem.h') diff --git a/lmem.h b/lmem.h index 9caf42fc..7af316f0 100644 --- a/lmem.h +++ b/lmem.h @@ -1,5 +1,5 @@ /* -** $Id: lmem.h,v 1.41 2014/10/08 20:25:51 roberto Exp roberto $ +** $Id: lmem.h,v 1.42 2014/12/19 13:45:40 roberto Exp roberto $ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ @@ -35,7 +35,8 @@ /* ** Arrays of chars do not need any test */ -#define luaM_reallocvchar(L,b,on,n) luaM_realloc_(L, (b), (on), (n)) +#define luaM_reallocvchar(L,b,on,n) \ + cast(char *, luaM_realloc_(L, (b), (on)*sizeof(char), (n)*sizeof(char))) #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) -- cgit v1.2.3-55-g6feb