Author: ilor
Date: Tue Sep 16 15:48:59 2008
New Revision: 29476
URL: http://svn.gna.org/viewcvs/wesnoth?rev=29476&view=rev
Log:
proper fix for the signed/unsigned warning
Modified:
trunk/src/editor2/map_context.cpp
trunk/src/editor2/map_context.hpp
Modified: trunk/src/editor2/map_context.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/map_context.cpp?rev=29476&r1=29475&r2=29476&view=diff
==============================================================================
--- trunk/src/editor2/map_context.cpp (original)
+++ trunk/src/editor2/map_context.cpp Tue Sep 16 15:48:59 2008
@@ -28,7 +28,7 @@
namespace editor2 {
-const int map_context::max_action_stack_size_ = 100;
+const size_t map_context::max_action_stack_size_ = 100;
map_context::map_context(const editor_map& map)
: map_(map)
@@ -265,7 +265,7 @@
void map_context::trim_stack(action_stack& stack)
{
- if (stack.size() > static_cast<size_t>(max_action_stack_size_)) {
+ if (stack.size() > max_action_stack_size_) {
delete stack.front();
stack.pop_front();
}
Modified: trunk/src/editor2/map_context.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/map_context.hpp?rev=29476&r1=29475&r2=29476&view=diff
==============================================================================
--- trunk/src/editor2/map_context.hpp (original)
+++ trunk/src/editor2/map_context.hpp Tue Sep 16 15:48:59 2008
@@ -229,7 +229,7 @@
/**
* Action stack (i.e. undo and redo) maximum size
*/
- static const int max_action_stack_size_;
+ static const size_t max_action_stack_size_;
/**
* Number of actions performed since the map was saved. Zero means the
map was not modified.
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits