From d1a47ce520db9486cd930969f5529ae3c40d1eaa Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 22 Jun 2012 11:42:50 +0000 Subject: [PATCH] explicit return type for a NSComparator --- macosx/Controller.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index ee457f4af..491808722 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -2090,7 +2090,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy for (NSUInteger currentIndex = 1; currentIndex < [rearrangeArray count]; ++currentIndex) { //manually do the sorting in-place - const NSUInteger insertIndex = [rearrangeArray indexOfObject: [rearrangeArray objectAtIndex: currentIndex] inSortedRange: NSMakeRange(0, currentIndex) options: (NSBinarySearchingInsertionIndex | NSBinarySearchingLastEqual) usingComparator: ^(id obj1, id obj2) { + const NSUInteger insertIndex = [rearrangeArray indexOfObject: [rearrangeArray objectAtIndex: currentIndex] inSortedRange: NSMakeRange(0, currentIndex) options: (NSBinarySearchingInsertionIndex | NSBinarySearchingLastEqual) usingComparator: ^NSComparisonResult(id obj1, id obj2) { for (NSSortDescriptor * descriptor in descriptors) { const NSComparisonResult result = [descriptor compareObject: obj1 toObject: obj2];