diff options
Diffstat (limited to 'src/guichan/widgets/tabbedarea.cpp')
-rw-r--r-- | src/guichan/widgets/tabbedarea.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/guichan/widgets/tabbedarea.cpp b/src/guichan/widgets/tabbedarea.cpp index 487549b6a..141bbf96e 100644 --- a/src/guichan/widgets/tabbedarea.cpp +++ b/src/guichan/widgets/tabbedarea.cpp @@ -160,7 +160,8 @@ namespace gcn int TabbedArea::getSelectedTabIndex() const { - for (unsigned int i = 0, sz = mTabs.size(); i < sz; i++) + for (unsigned int i = 0, sz = static_cast<unsigned int>(mTabs.size()); + i < sz; i++) { if (mTabs[i].first == mSelectedTab) return i; @@ -258,7 +259,7 @@ namespace gcn { int maxTabHeight = 0; unsigned int i; - const unsigned int sz = mTabs.size(); + const unsigned int sz = static_cast<unsigned int>(mTabs.size()); for (i = 0; i < sz; i++) { if (mTabs[i].first->getHeight() > maxTabHeight) |