mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-09 18:16:28 +00:00
Remove some old-style-casts.
This commit is contained in:
parent
721eb83250
commit
07f26d6cb7
@ -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)))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user