mail[Wesnoth-commits] r24853 - /trunk/src/generate_report.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 - 18:06:
Author: brunowolff
Date: Wed Mar 19 18:06:24 2008
New Revision: 24853

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

Modified:
    trunk/src/generate_report.cpp

Modified: trunk/src/generate_report.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/generate_report.cpp?rev=24853&r1=24852&r2=24853&view=diff
==============================================================================
--- trunk/src/generate_report.cpp (original)
+++ trunk/src/generate_report.cpp Wed Mar 19 18:06:24 2008
@@ -46,7 +46,7 @@
 {
        unit_map::iterator u = units.end();
 
-       if(int(type) >= int(UNIT_REPORTS_BEGIN) && int(type) < 
int(UNIT_REPORTS_END) || type == POSITION) {
+       if((int(type) >= int(UNIT_REPORTS_BEGIN) && int(type) < 
int(UNIT_REPORTS_END)) || type == POSITION) {
 
                u = find_visible_unit(units,displayed_unit_hex,
                                      map,




Related Messages


Powered by MHonArc, Updated Wed Mar 19 18:21:30 2008