summaryrefslogtreecommitdiff
path: root/src/itemshortcut.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r--src/itemshortcut.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp
index b373b5cd4..2ba3cbe9a 100644
--- a/src/itemshortcut.cpp
+++ b/src/itemshortcut.cpp
@@ -230,8 +230,9 @@ void ItemShortcut::setItem(const int index, const int item,
void ItemShortcut::swap(const int index1, const int index2)
{
- if (index1 < 0 || index2 < 0 || (unsigned int)index1 >= SHORTCUT_ITEMS
- || (unsigned int)index2 >= SHORTCUT_ITEMS)
+ if (index1 < 0 || index2 < 0
+ || static_cast<unsigned int>(index1) >= SHORTCUT_ITEMS
+ || static_cast<unsigned int>(index2) >= SHORTCUT_ITEMS)
{
return;
}