summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-31 00:23:46 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-31 00:23:46 +0300
commit21244d05278ca3a901bc0e0e34b8d0464563f264 (patch)
tree9720f8ab9684eff9831649765a5e3d467fd2489e /src/gui/widgets/itemcontainer.cpp
parent382d24526919eafc08df19169046fdae190e10da (diff)
downloadmanaplus-21244d05278ca3a901bc0e0e34b8d0464563f264.tar.gz
manaplus-21244d05278ca3a901bc0e0e34b8d0464563f264.tar.bz2
manaplus-21244d05278ca3a901bc0e0e34b8d0464563f264.tar.xz
manaplus-21244d05278ca3a901bc0e0e34b8d0464563f264.zip
Fix compilation warning.
Diffstat (limited to 'src/gui/widgets/itemcontainer.cpp')
-rw-r--r--src/gui/widgets/itemcontainer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index 59d5c8976..650911f9d 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -928,10 +928,9 @@ void ItemContainer::adjustHeight()
if (mGridRows == 0 || (mLastUsedSlot + 1) % mGridColumns > 0)
++mGridRows;
- const unsigned int invSize = mInventory->getSize();
+ const int invSize = mInventory->getSize();
int maxRows = mShowEmptyRows == ShowEmptyRows_true ?
- std::max(invSize / mGridColumns,
- static_cast<unsigned int>(mGridRows)) : mGridRows;
+ std::max(invSize / mGridColumns, mGridRows) : mGridRows;
if (mShowEmptyRows == ShowEmptyRows_true)
{