From d8155a754639fc134b1e09991fdfe7c6021d6b0a Mon Sep 17 00:00:00 2001 From: Yee Cheng Chin Date: Tue, 10 Sep 2024 18:46:24 -0700 Subject: [PATCH] Fix dragging GUI tabs resulting in a crash This was introduced by #1457 which was supposed to be a simple compiler warning cleanup but it introduced a signed integer bug. Fix that here. Fix #1473 --- src/MacVim/PSMTabBarControl/source/PSMTabDragAssistant.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MacVim/PSMTabBarControl/source/PSMTabDragAssistant.m b/src/MacVim/PSMTabBarControl/source/PSMTabDragAssistant.m index 4e688c6f08..1142cf57ce 100644 --- a/src/MacVim/PSMTabBarControl/source/PSMTabDragAssistant.m +++ b/src/MacVim/PSMTabBarControl/source/PSMTabDragAssistant.m @@ -386,7 +386,7 @@ - (void)distributePlaceholdersInTabBar:(PSMTabBarControl *)control - (void)removeAllPlaceholdersFromTabBar:(PSMTabBarControl *)control { - NSUInteger i, cellCount = [[control cells] count]; + int i, cellCount = (int)[[control cells] count]; for(i = (cellCount - 1); i >= 0; i--){ PSMTabBarCell *cell = [[control cells] objectAtIndex:i]; if([cell isPlaceholder])