Author: mordante
Date: Fri Oct 21 20:59:22 2011
New Revision: 51563

URL: http://svn.gna.org/viewcvs/wesnoth?rev=51563&view=rev
Log:
Remove some old-style-casts.

Modified:
    trunk/src/lua/lauxlib.h

Modified: trunk/src/lua/lauxlib.h
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/lua/lauxlib.h?rev=51563&r1=51562&r2=51563&view=diff
==============================================================================
--- trunk/src/lua/lauxlib.h (original)
+++ trunk/src/lua/lauxlib.h Fri Oct 21 20:59:22 2011
@@ -101,8 +101,8 @@
                ((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)))
 


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to