mail[Wesnoth-commits] r28724 - /trunk/src/campaign_server/campaign_server.cpp


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

Header


Content

Posted by paniemin on August 18, 2008 - 19:45:
Author: suokko
Date: Mon Aug 18 19:10:25 2008
New Revision: 28724

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28724&view=rev
Log:
Fixed compilation warning

Modified:
    trunk/src/campaign_server/campaign_server.cpp

Modified: trunk/src/campaign_server/campaign_server.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/campaign_server/campaign_server.cpp?rev=28724&r1=28723&r2=28724&view=diff
==============================================================================
--- trunk/src/campaign_server/campaign_server.cpp (original)
+++ trunk/src/campaign_server/campaign_server.cpp Mon Aug 18 19:10:25 2008
@@ -313,9 +313,8 @@
                                        
out_filter.push(boost::iostreams::gzip_compressor(boost::iostreams::gzip_params(compress_level_)));
                                        out_filter.push(*out_file);
                                        
-                                       unsigned char c;
-                                       while(((c = in_filter.get()) >= 0)
-                                                       && in_filter.good())
+                                       unsigned char c = in_filter.get();
+                                       while( in_filter.good())
                                        {
                                                if (c == '\r')
                                                {
@@ -324,6 +323,7 @@
                                                } else {
                                                        out_filter.put(c);
                                                }
+                                               c = in_filter.get();
                                        }
 
                                        
std::remove((**itor)["filename"].c_str());




Related Messages


Powered by MHonArc, Updated Mon Aug 18 20:02:08 2008