mirror of https://github.com/rusefi/lua.git
try to avoid warnings
This commit is contained in:
parent
4494094031
commit
2cbd9eecfb
4
lmem.h
4
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
|
** Interface to Memory Manager
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -21,7 +21,7 @@ void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, size_t size);
|
||||||
void *luaM_toobig (lua_State *L);
|
void *luaM_toobig (lua_State *L);
|
||||||
|
|
||||||
#define luaM_reallocv(L,b,on,n,e) \
|
#define luaM_reallocv(L,b,on,n,e) \
|
||||||
((cast(unsigned int, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \
|
((cast(size_t, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \
|
||||||
luaM_realloc_(L, (b), (on)*(e), (n)*(e)) : \
|
luaM_realloc_(L, (b), (on)*(e), (n)*(e)) : \
|
||||||
luaM_toobig(L))
|
luaM_toobig(L))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue