lua

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

commit 94912d99fcdf61c1fc6dc8897c9d2b0e042e0d63
parent b40c9f7a3ce181134e12d13c0d2284c8fd093735
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu, 14 Nov 2002 14:58:54 -0200

details

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

diff --git a/ltests.c b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 1.142 2002/11/14 11:51:23 roberto Exp roberto $ +** $Id: ltests.c,v 1.143 2002/11/14 15:41:38 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -64,7 +64,7 @@ static void setnameval (lua_State *L, const char *name, int val) { #define MARK 0x55 /* 01010101 (a nice pattern) */ -#define blocksize(b) (cast(size_t *, b) - HEADER/sizeof(size_t)) +#define blocksize(b) (cast(size_t *, cast(char *, b) - HEADER)) unsigned long memdebug_numblocks = 0; unsigned long memdebug_total = 0;