summaryrefslogtreecommitdiff
path: root/lmem.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-18 13:38:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-18 13:38:02 -0300
commit2cbd9eecfb703b9c5b2963f6a4db63bd815fafc3 (patch)
treeb37301885920e96bf4bca970796a33f4dc2850bc /lmem.h
parent4494094031d3785b4527a9baf572cb1e272aa9d2 (diff)
downloadlua-github-2cbd9eecfb703b9c5b2963f6a4db63bd815fafc3.tar.gz
try to avoid warnings
Diffstat (limited to 'lmem.h')
-rw-r--r--lmem.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lmem.h b/lmem.h
index 331d722f..13377d00 100644
--- a/lmem.h
+++ b/lmem.h
@@ -1,5 +1,5 @@
/*
-** $Id: lmem.h,v 1.28 2004/11/24 19:20:21 roberto Exp roberto $
+** $Id: lmem.h,v 1.29 2004/12/01 15:46:18 roberto Exp roberto $
** Interface to Memory Manager
** See Copyright Notice in lua.h
*/
@@ -21,9 +21,9 @@ void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, size_t size);
void *luaM_toobig (lua_State *L);
#define luaM_reallocv(L,b,on,n,e) \
- ((cast(unsigned int, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \
- luaM_realloc_(L, (b), (on)*(e), (n)*(e)) : \
- luaM_toobig(L))
+ ((cast(size_t, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \
+ luaM_realloc_(L, (b), (on)*(e), (n)*(e)) : \
+ luaM_toobig(L))
void *luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elem,