Author: brunowolff
Date: Wed Mar 19 17:06:10 2008
New Revision: 24835

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

Modified:
    trunk/src/widgets/button.cpp

Modified: trunk/src/widgets/button.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/widgets/button.cpp?rev=24835&r1=24834&r2=24835&view=diff
==============================================================================
--- trunk/src/widgets/button.cpp (original)
+++ trunk/src/widgets/button.cpp Wed Mar 19 17:06:10 2008
@@ -267,7 +267,7 @@
                // the cursor is not over the widget
                if (state_ == PRESSED_ACTIVE)
                        state_ = PRESSED;
-               else if (type_ != TYPE_CHECK && type_ != TYPE_IMAGE || state_ 
!= PRESSED)
+               else if ((type_ != TYPE_CHECK && type_ != TYPE_IMAGE) || state_ 
!= PRESSED)
                        state_ = NORMAL;
        }
 }


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

Reply via email to