aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-15 16:46:37 (GMT)
committersimonb <simonb>2006-04-15 16:46:37 (GMT)
commit02aa83a59eb3d9e209449b38808635f9e293a17a (patch)
tree60bde408a59c51e5abc3fd266f2ed3ae68fa2e72 /src
parent7c7908443302fc66929e19804f0fbd655d4c7f34 (diff)
downloadfluxbox_pavel-02aa83a59eb3d9e209449b38808635f9e293a17a.zip
fluxbox_pavel-02aa83a59eb3d9e209449b38808635f9e293a17a.tar.bz2
signedness fix
Diffstat (limited to 'src')
-rw-r--r--src/Container.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Container.cc b/src/Container.cc
index bcd5464..caab11b 100644
--- a/src/Container.cc
+++ b/src/Container.cc
@@ -129,11 +129,11 @@ void Container::moveItem(Item item, int movement) {
129 int index = find(item); 129 int index = find(item);
130 const size_t size = m_item_list.size(); 130 const size_t size = m_item_list.size();
131 131
132 if (index < 0 || (movement % size) == 0) { 132 if (index < 0 || (movement % static_cast<signed>(size)) == 0) {
133 return; 133 return;
134 } 134 }
135 135
136 int newindex = (index + movement) % size; 136 int newindex = (index + movement) % static_cast<signed>(size);
137 if (newindex < 0) // neg wrap 137 if (newindex < 0) // neg wrap
138 newindex += size; 138 newindex += size;
139 139