mail[Wesnoth-commits] r34256 - /trunk/src/multiplayer_lobby.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on March 29, 2009 - 22:30:
Author: mordante
Date: Sun Mar 29 22:30:31 2009
New Revision: 34256

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34256&view=rev
Log:
Converted the old style casts to c++ style casts.

Modified:
    trunk/src/multiplayer_lobby.cpp

Modified: trunk/src/multiplayer_lobby.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/multiplayer_lobby.cpp?rev=34256&r1=34255&r2=34256&view=diff
==============================================================================
--- trunk/src/multiplayer_lobby.cpp (original)
+++ trunk/src/multiplayer_lobby.cpp Sun Mar 29 22:30:31 2009
@@ -332,8 +332,8 @@
                        x = event.button.x;
                        y = event.button.y;
                } else {
-                       x = (long)event.user.data1;
-                       y = (long)event.user.data2;
+                       x = reinterpret_cast<long>(event.user.data1);
+                       y = reinterpret_cast<long>(event.user.data2);
                }
                const SDL_Rect& loc = inner_location();
 




Related Messages


Powered by MHonArc, Updated Sun Mar 29 22:40:41 2009