diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-14 14:59:16 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-14 14:59:16 -0200 |
commit | 94912d99fcdf61c1fc6dc8897c9d2b0e042e0d63 (patch) | |
tree | f641f96eaf6f34f1ae85b0f559bfbfc2c8f12c4a | |
parent | b40c9f7a3ce181134e12d13c0d2284c8fd093735 (diff) | |
download | lua-94912d99fcdf61c1fc6dc8897c9d2b0e042e0d63.tar.gz lua-94912d99fcdf61c1fc6dc8897c9d2b0e042e0d63.tar.bz2 lua-94912d99fcdf61c1fc6dc8897c9d2b0e042e0d63.zip |
details
-rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 1.142 2002/11/14 11:51:23 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.143 2002/11/14 15:41:38 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -64,7 +64,7 @@ static void setnameval (lua_State *L, const char *name, int val) { | |||
64 | #define MARK 0x55 /* 01010101 (a nice pattern) */ | 64 | #define MARK 0x55 /* 01010101 (a nice pattern) */ |
65 | 65 | ||
66 | 66 | ||
67 | #define blocksize(b) (cast(size_t *, b) - HEADER/sizeof(size_t)) | 67 | #define blocksize(b) (cast(size_t *, cast(char *, b) - HEADER)) |
68 | 68 | ||
69 | unsigned long memdebug_numblocks = 0; | 69 | unsigned long memdebug_numblocks = 0; |
70 | unsigned long memdebug_total = 0; | 70 | unsigned long memdebug_total = 0; |