mail[Wesnoth-commits] r24873 - /trunk/src/server/simple_wml.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:57:
Author: brunowolff
Date: Wed Mar 19 18:57:30 2008
New Revision: 24873

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

Modified:
    trunk/src/server/simple_wml.cpp

Modified: trunk/src/server/simple_wml.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/simple_wml.cpp?rev=24873&r1=24872&r2=24873&view=diff
==============================================================================
--- trunk/src/server/simple_wml.cpp (original)
+++ trunk/src/server/simple_wml.cpp Wed Mar 19 18:57:30 2008
@@ -57,7 +57,7 @@
 
        std::vector<char> buf(in.size()*2 + 80);
        const int len = filter.read(&buf[0], buf.size()).gcount();
-       if(!filter.eof() && !filter.good() || len == buf.size()) {
+       if((!filter.eof() && !filter.good()) || len == buf.size()) {
                throw error("failed to compress");
        }
 




Related Messages


Powered by MHonArc, Updated Wed Mar 19 19:21:31 2008