mail[Wesnoth-commits] r34181 - /branches/1.6/src/unit_id.cpp


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

Header


Content

Posted by df on March 27, 2009 - 11:48:
Author: dfranke
Date: Fri Mar 27 11:48:44 2009
New Revision: 34181

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34181&view=rev
Log:
Add an explicit cast to shut up warnings from g++ 3.4, addressing bug #13269

Modified:
    branches/1.6/src/unit_id.cpp

Modified: branches/1.6/src/unit_id.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/src/unit_id.cpp?rev=34181&r1=34180&r2=34181&view=diff
==============================================================================
--- branches/1.6/src/unit_id.cpp (original)
+++ branches/1.6/src/unit_id.cpp Fri Mar 27 11:48:44 2009
@@ -22,7 +22,7 @@
 namespace n_unit {
        id_manager id_manager::manager_;
 
-       id_manager::id_manager() : next_id_(0), fake_id_(-1)
+       id_manager::id_manager() : next_id_(0), 
fake_id_(static_cast<size_t>(-1))
        {}
 
        id_manager& id_manager::instance()
@@ -58,7 +58,7 @@
 
        void id_manager::reset_fake()
        {
-               fake_id_ = -1;
+               fake_id_ = static_cast<size_t>(-1);
        }
 
        void id_manager::clear()




Related Messages


Powered by MHonArc, Updated Fri Mar 27 13:40:30 2009