From 15a79eee1b3baa91953daf33dc021a1e7c147365 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 14 Jul 2014 23:43:54 +0300 Subject: Change refine type to uint8_t. --- src/gui/popups/itempopup.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/gui/popups/itempopup.cpp') diff --git a/src/gui/popups/itempopup.cpp b/src/gui/popups/itempopup.cpp index 99418881f..df245370c 100644 --- a/src/gui/popups/itempopup.cpp +++ b/src/gui/popups/itempopup.cpp @@ -117,13 +117,17 @@ void ItemPopup::setItem(const Item *const item, const bool showImage) mLastId = item->getId(); if (serverVersion > 0) { - mItemName->setCaption(strprintf("%s (+%d), %d", ii.getName( - item->getColor()).c_str(), item->getRefine(), ii.getId())); + mItemName->setCaption(strprintf("%s (+%u), %d", + ii.getName(item->getColor()).c_str(), + static_cast(item->getRefine()), + ii.getId())); } else { mItemName->setCaption(strprintf("%s (+%d), %d", - ii.getName().c_str(), item->getRefine(), ii.getId())); + ii.getName().c_str(), + static_cast(item->getRefine()), + ii.getId())); } mItemName->adjustSize(); const unsigned minWidth = mItemName->getWidth() + 8; -- cgit v1.2.3-70-g09d2