diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-20 15:15:33 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-20 15:15:33 -0300 |
commit | 099442c41f2cec6122690e6c8f2e11327613e6f6 (patch) | |
tree | 73599b274ea4a9b96906ff8160eeb4a524702a8e /lmem.c | |
parent | 27600fe87a6fafdfd4ddddeb390591fe749b480f (diff) | |
download | lua-github-099442c41f2cec6122690e6c8f2e11327613e6f6.tar.gz |
better separation between basic types
Diffstat (limited to 'lmem.c')
-rw-r--r-- | lmem.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lmem.c,v 1.45 2001/02/05 19:08:01 roberto Exp roberto $ +** $Id: lmem.c,v 1.46 2001/02/06 16:01:29 roberto Exp roberto $ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ @@ -33,8 +33,8 @@ void *luaM_growaux (lua_State *L, void *block, int *size, int size_elems, newsize = limit; /* still have at least MINPOWER2 free places */ else luaD_error(L, errormsg); } - newblock = luaM_realloc(L, block, (luint32)(*size)*(luint32)size_elems, - (luint32)newsize*(luint32)size_elems); + newblock = luaM_realloc(L, block, (lu_mem)(*size)*(lu_mem)size_elems, + (lu_mem)newsize*(lu_mem)size_elems); *size = newsize; /* update only when everything else is OK */ return newblock; } @@ -43,7 +43,7 @@ void *luaM_growaux (lua_State *L, void *block, int *size, int size_elems, /* ** generic allocation routine. */ -void *luaM_realloc (lua_State *L, void *block, luint32 oldsize, luint32 size) { +void *luaM_realloc (lua_State *L, void *block, lu_mem oldsize, lu_mem size) { if (size == 0) { l_free(block, oldsize); /* block may be NULL; that is OK for free */ block = NULL; |