Fix build error

This commit is contained in:
Don Ho 2023-12-16 02:20:15 +01:00
parent fa82ca0224
commit 58d8043e2b
1 changed files with 2 additions and 2 deletions

View File

@ -419,10 +419,10 @@ void TabBarPlus::currentTabToStart()
void TabBarPlus::currentTabToEnd()
{
int currentTabIndex = getCurrentTabIndex();
if (currentTabIndex >= _nbItem)
if (currentTabIndex >= static_cast<int>(_nbItem))
return;
for (int i = currentTabIndex, j = currentTabIndex + 1; j < _nbItem; ++i, ++j)
for (int i = currentTabIndex, j = currentTabIndex + 1; j < static_cast<int>(_nbItem); ++i, ++j)
{
exchangeTabItemData(i, j);
}