From 58d8043e2b9ab96f9c498bc92f5196474a7fae07 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sat, 16 Dec 2023 02:20:15 +0100 Subject: [PATCH] Fix build error --- PowerEditor/src/WinControls/TabBar/TabBar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/WinControls/TabBar/TabBar.cpp b/PowerEditor/src/WinControls/TabBar/TabBar.cpp index 3dbafb12d..3eb5f87e8 100644 --- a/PowerEditor/src/WinControls/TabBar/TabBar.cpp +++ b/PowerEditor/src/WinControls/TabBar/TabBar.cpp @@ -419,10 +419,10 @@ void TabBarPlus::currentTabToStart() void TabBarPlus::currentTabToEnd() { int currentTabIndex = getCurrentTabIndex(); - if (currentTabIndex >= _nbItem) + if (currentTabIndex >= static_cast(_nbItem)) return; - for (int i = currentTabIndex, j = currentTabIndex + 1; j < _nbItem; ++i, ++j) + for (int i = currentTabIndex, j = currentTabIndex + 1; j < static_cast(_nbItem); ++i, ++j) { exchangeTabItemData(i, j); }