mail[Wesnoth-commits] r24837 - /trunk/src/widgets/menu.cpp


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

Header


Content

Posted by bruno on March 19, 2008 - 17:11:
Author: brunowolff
Date: Wed Mar 19 17:11:07 2008
New Revision: 24837

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24837&view=rev
Log:
Silence gcc 4.3 warning by adding parens around && clause near ||.

Modified:
    trunk/src/widgets/menu.cpp

Modified: trunk/src/widgets/menu.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/widgets/menu.cpp?rev=24837&r1=24836&r2=24837&view=diff
==============================================================================
--- trunk/src/widgets/menu.cpp (original)
+++ trunk/src/widgets/menu.cpp Wed Mar 19 17:11:07 2008
@@ -603,8 +603,8 @@
                // Only pass key events if we have the focus
                if (focus(&event))
                        key_press(event.key.keysym.sym);
-       } else if(event.type == SDL_MOUSEBUTTONDOWN &&
-                (event.button.button == SDL_BUTTON_LEFT || 
event.button.button == SDL_BUTTON_RIGHT) ||
+       } else if((event.type == SDL_MOUSEBUTTONDOWN &&
+                (event.button.button == SDL_BUTTON_LEFT || 
event.button.button == SDL_BUTTON_RIGHT)) ||
                 event.type == DOUBLE_CLICK_EVENT) {
 
                int x = 0;




Related Messages


Powered by MHonArc, Updated Wed Mar 19 17:21:39 2008