warnings from Visual C++

This commit is contained in:
Roberto Ierusalimschy
1999-10-19 11:33:22 -02:00
parent 8e7451512f
commit 910836fb53
7 changed files with 15 additions and 16 deletions

4
lmem.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lmem.c,v 1.17 1999/05/24 17:51:05 roberto Exp roberto $
** $Id: lmem.c,v 1.18 1999/08/16 20:52:00 roberto Exp roberto $
** Interface to Memory Manager
** See Copyright Notice in lua.h
*/
@@ -129,7 +129,7 @@ void *luaM_realloc (void *block, unsigned long size) {
numblocks++;
*(unsigned long *)newblock = size;
for (i=0;i<MARKSIZE;i++)
*(newblock+HEADER+size+i) = MARK+i;
*(newblock+HEADER+size+i) = (char)(MARK+i);
return newblock+HEADER;
}
}