From 64c2bcc59b5b807c962da3397acdd941e7d20c9e Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Sat, 5 Aug 2017 19:52:54 +0300
Subject: Fix compilation for macosx.

---
 src/gui/shortcut/itemshortcut.cpp | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/gui/shortcut/itemshortcut.cpp b/src/gui/shortcut/itemshortcut.cpp
index 526baa265..7b9bab6e6 100644
--- a/src/gui/shortcut/itemshortcut.cpp
+++ b/src/gui/shortcut/itemshortcut.cpp
@@ -68,11 +68,12 @@ void ItemShortcut::load()
     const Configuration *cfg = &serverConfig;
     if (mNumber != 0)
     {
-        name = std::string("shortcut").append(toString(mNumber)).append("_");
+        name = std::string("shortcut").append(
+            toString(CAST_S32(mNumber))).append("_");
         color = std::string("shortcutColor").append(
-            toString(mNumber)).append("_");
+            toString(CAST_U32(mNumber))).append("_");
         data = std::string("shortcutData").append(
-            toString(mNumber)).append("_");
+            toString(CAST_U32(mNumber))).append("_");
     }
     else
     {
@@ -102,11 +103,12 @@ void ItemShortcut::save() const
         return;
     if (mNumber != 0)
     {
-        name = std::string("shortcut").append(toString(mNumber)).append("_");
+        name = std::string("shortcut").append(
+            toString(CAST_S32(mNumber))).append("_");
         color = std::string("shortcutColor").append(
-            toString(mNumber)).append("_");
+            toString(CAST_U32(mNumber))).append("_");
         data = std::string("shortcutData").append(
-            toString(mNumber)).append("_");
+            toString(CAST_U32(mNumber))).append("_");
     }
     else
     {
-- 
cgit v1.2.3-70-g09d2