From 21244d05278ca3a901bc0e0e34b8d0464563f264 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 31 Oct 2015 00:23:46 +0300 Subject: Fix compilation warning. --- src/gui/widgets/itemcontainer.cpp | 5 ++--- 1 file 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(mGridRows)) : mGridRows; + std::max(invSize / mGridColumns, mGridRows) : mGridRows; if (mShowEmptyRows == ShowEmptyRows_true) { -- cgit v1.2.3-60-g2f50