From f11ef2d8875b118c90ea000c25dc7ca04f9a3752 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Tue, 7 Jun 2022 18:57:19 -0700 Subject: [PATCH] [Playlist Controller] Fix ambiguity with Xcode 14 This NSArray member call is ambiguous, but Xcode <14 allowed it. Signed-off-by: Christopher Snowhill --- Playlist/PlaylistController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Playlist/PlaylistController.m b/Playlist/PlaylistController.m index db743e7f7..9dfb68474 100644 --- a/Playlist/PlaylistController.m +++ b/Playlist/PlaylistController.m @@ -825,7 +825,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc // Cheap hack so the index column isn't sorted if([sortDescriptors count] != 0) { - if([[sortDescriptors[0] key] caseInsensitiveCompare:@"index"] == NSOrderedSame) { + if([[((NSSortDescriptor *)(sortDescriptors[0])) key] caseInsensitiveCompare:@"index"] == NSOrderedSame) { // Remove the sort descriptors [super setSortDescriptors:@[]]; [self rearrangeObjects];