mail[Wesnoth-commits] r24813 - /trunk/src/serialization/preprocessor.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 - 16:14:
Author: brunowolff
Date: Wed Mar 19 16:14:10 2008
New Revision: 24813

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

Modified:
    trunk/src/serialization/preprocessor.cpp

Modified: trunk/src/serialization/preprocessor.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/serialization/preprocessor.cpp?rev=24813&r1=24812&r2=24813&view=diff
==============================================================================
--- trunk/src/serialization/preprocessor.cpp (original)
+++ trunk/src/serialization/preprocessor.cpp Wed Mar 19 16:14:10 2008
@@ -470,8 +470,8 @@
                strings_.back() += c;
                return;
        }
-       if (linenum_ != target_.linenum_ && c != '\n' ||
-           linenum_ != target_.linenum_ + 1 && c == '\n') {
+       if ((linenum_ != target_.linenum_ && c != '\n') ||
+           (linenum_ != target_.linenum_ + 1 && c == '\n')) {
                target_.linenum_ = linenum_;
                if (c == '\n')
                        --target_.linenum_;




Related Messages


Powered by MHonArc, Updated Wed Mar 19 16:21:41 2008