proper fix for the signed/unsigned warning

This commit is contained in:
Tomasz Śniatowski 2008-09-16 14:48:59 +01:00
parent 77e647420a
commit fb13733237
2 changed files with 3 additions and 3 deletions

View file

@ -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::clear_undo_redo()
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();
}

View file

@ -229,7 +229,7 @@ protected:
/**
* 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.