lua

A copy of the Lua development repository
Log | Files | Refs | README

commit f83bc86e5140f929e616d6b885813513e62ed5fb
parent 59744f03112d4d0a3b589d99c780c24186e277fc
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue,  1 Apr 1997 18:23:00 -0300

small "bugs" detected by Purify: some blocks may be smaller than
sizeof(int).

Diffstat:
Mluamem.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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 <stdlib.h> @@ -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); } }