all repos — fluxbox @ 02aa83a59eb3d9e209449b38808635f9e293a17a

custom fork of the fluxbox windowmanager

signedness fix
simonb simonb
commit

02aa83a59eb3d9e209449b38808635f9e293a17a

parent

7c7908443302fc66929e19804f0fbd655d4c7f34

2 files changed, 4 insertions(+), 2 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,6 +1,8 @@

(Format: Year/Month/Day) Changes for 0.9.16: *06/04/16: + * signedness fix in Container moveItem (thanks _markt) + Container.cc * Vertical toolbar (Simon) Toolbar.cc ToolbarItem.hh/cc IconbarTool.hh/cc IconButton.hh/cc ClockTool.hh/cc ButtonTool.cc WorkspaceNameTool.hh/cc Container.cc
M src/Container.ccsrc/Container.cc

@@ -129,11 +129,11 @@

int index = find(item); const size_t size = m_item_list.size(); - if (index < 0 || (movement % size) == 0) { + if (index < 0 || (movement % static_cast<signed>(size)) == 0) { return; } - int newindex = (index + movement) % size; + int newindex = (index + movement) % static_cast<signed>(size); if (newindex < 0) // neg wrap newindex += size;