diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-18 13:38:02 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-18 13:38:02 -0300 |
commit | 2cbd9eecfb703b9c5b2963f6a4db63bd815fafc3 (patch) | |
tree | b37301885920e96bf4bca970796a33f4dc2850bc /lmem.h | |
parent | 4494094031d3785b4527a9baf572cb1e272aa9d2 (diff) | |
download | lua-2cbd9eecfb703b9c5b2963f6a4db63bd815fafc3.tar.gz lua-2cbd9eecfb703b9c5b2963f6a4db63bd815fafc3.tar.bz2 lua-2cbd9eecfb703b9c5b2963f6a4db63bd815fafc3.zip |
try to avoid warnings
Diffstat (limited to 'lmem.h')
-rw-r--r-- | lmem.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmem.h,v 1.28 2004/11/24 19:20:21 roberto Exp roberto $ | 2 | ** $Id: lmem.h,v 1.29 2004/12/01 15:46:18 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 | */ |
@@ -21,9 +21,9 @@ void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, size_t size); | |||
21 | void *luaM_toobig (lua_State *L); | 21 | void *luaM_toobig (lua_State *L); |
22 | 22 | ||
23 | #define luaM_reallocv(L,b,on,n,e) \ | 23 | #define luaM_reallocv(L,b,on,n,e) \ |
24 | ((cast(unsigned int, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \ | 24 | ((cast(size_t, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \ |
25 | luaM_realloc_(L, (b), (on)*(e), (n)*(e)) : \ | 25 | luaM_realloc_(L, (b), (on)*(e), (n)*(e)) : \ |
26 | luaM_toobig(L)) | 26 | luaM_toobig(L)) |
27 | 27 | ||
28 | 28 | ||
29 | void *luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elem, | 29 | void *luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elem, |