Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
donho committed Dec 16, 2023
1 parent fa82ca0 commit 58d8043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PowerEditor/src/WinControls/TabBar/TabBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 58d8043

Please sign in to comment.