Skip to content

Commit d8155a7

Browse files
committed
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
1 parent 1b5597c commit d8155a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MacVim/PSMTabBarControl/source/PSMTabDragAssistant.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ - (void)distributePlaceholdersInTabBar:(PSMTabBarControl *)control
386386

387387
- (void)removeAllPlaceholdersFromTabBar:(PSMTabBarControl *)control
388388
{
389-
NSUInteger i, cellCount = [[control cells] count];
389+
int i, cellCount = (int)[[control cells] count];
390390
for(i = (cellCount - 1); i >= 0; i--){
391391
PSMTabBarCell *cell = [[control cells] objectAtIndex:i];
392392
if([cell isPlaceholder])

0 commit comments

Comments
 (0)