From f83bc86e5140f929e616d6b885813513e62ed5fb Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 1 Apr 1997 18:23:20 -0300 Subject: [PATCH] small "bugs" detected by Purify: some blocks may be smaller than sizeof(int). --- luamem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luamem.c b/luamem.c index 59cc8c11..9c0799b3 100644 --- a/luamem.c +++ b/luamem.c @@ -3,7 +3,7 @@ ** TecCGraf - PUC-Rio */ -char *rcs_luamem = "$Id: mem.c,v 1.14 1997/03/03 19:55:38 roberto Exp roberto $"; +char *rcs_luamem = "$Id: luamem.c,v 1.15 1997/03/31 14:17:09 roberto Exp roberto $"; #include @@ -19,7 +19,7 @@ void luaI_free (void *block) { if (block) { - *((int *)block) = -1; /* to catch errors */ + *((char *)block) = -1; /* to catch errors */ free(block); } }