Remove some old-style-casts.

This commit is contained in:
Mark de Wever 2011-10-21 18:59:22 +00:00
parent 721eb83250
commit 07f26d6cb7

View File

@ -101,8 +101,8 @@ LUALIB_API const char *(luaL_findtable) (lua_State *L, int idx,
((void)((cond) || luaL_argerror(L, (numarg), (extramsg))))
#define luaL_checkstring(L,n) (luaL_checklstring(L, (n), NULL))
#define luaL_optstring(L,n,d) (luaL_optlstring(L, (n), (d), NULL))
#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n)))
#define luaL_optint(L,n,d) ((int)luaL_optinteger(L, (n), (d)))
#define luaL_checkint(L,n) (static_cast<int>(luaL_checkinteger(L, (n))))
#define luaL_optint(L,n,d) (static_cast<int>(luaL_optinteger(L, (n), (d))))
#define luaL_checklong(L,n) ((long)luaL_checkinteger(L, (n)))
#define luaL_optlong(L,n,d) ((long)luaL_optinteger(L, (n), (d)))