diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-19 13:14:09 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-19 13:14:09 -0300 |
commit | 9618aaf07d0d82ccbac91db22cb42451ec17d7ed (patch) | |
tree | 199314fbf7462d174921c71af389da14b4f6c595 /lmem.c | |
parent | bec9bc4154e54fbc19b134874f6301f1e4654d5d (diff) | |
download | lua-9618aaf07d0d82ccbac91db22cb42451ec17d7ed.tar.gz lua-9618aaf07d0d82ccbac91db22cb42451ec17d7ed.tar.bz2 lua-9618aaf07d0d82ccbac91db22cb42451ec17d7ed.zip |
small corrections in comments
Diffstat (limited to 'lmem.c')
-rw-r--r-- | lmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmem.c,v 1.4 1997/12/17 20:48:58 roberto Exp roberto $ | 2 | ** $Id: lmem.c,v 1.5 1998/03/09 21:49:52 roberto Exp roberto $ |
3 | ** Interface to Memory Manager | 3 | ** Interface to Memory Manager |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -83,7 +83,7 @@ void *luaM_realloc (void *block, unsigned long size) | |||
83 | unsigned long realsize = sizeof(unsigned long)+size+sizeof(char); | 83 | unsigned long realsize = sizeof(unsigned long)+size+sizeof(char); |
84 | if (realsize != (size_t)realsize) | 84 | if (realsize != (size_t)realsize) |
85 | lua_error("Allocation Error: Block too big"); | 85 | lua_error("Allocation Error: Block too big"); |
86 | if (size == 0) { /* ANSI doen't need this, but some machines... */ | 86 | if (size == 0) { /* ANSI dosen't need this, but some machines... */ |
87 | if (block) { | 87 | if (block) { |
88 | memset(block, -1, *((unsigned long *)block-1)); /* erase block */ | 88 | memset(block, -1, *((unsigned long *)block-1)); /* erase block */ |
89 | block = checkblock(block); | 89 | block = checkblock(block); |