From d694efc941371330fff082e484fb8cd528af576b Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Sat, 3 Aug 2024 21:44:02 -0400 Subject: [PATCH] Fix compilation error --- Source/NSOutlineView.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/NSOutlineView.m b/Source/NSOutlineView.m index 9f78561e3..d598ddb68 100644 --- a/Source/NSOutlineView.m +++ b/Source/NSOutlineView.m @@ -1748,8 +1748,9 @@ Also returns the child index relative to this parent. */ id parentItem = (pItem == nil) ? (id)[NSNull null] : (id)pItem; NSArray *children = NSMapGet(_itemDict, parentItem); NSInteger childCount = [children count]; - - for (NSInteger index = 0; index < childCount; index++) + NSInteger index = 0; + + for (index = 0; index < childCount; index++) { id childItem = [children objectAtIndex: index];