From f871d2dbf82008df08dbe2e6093ab222338c3ee4 Mon Sep 17 00:00:00 2001 From: Greg Bolsinga Date: Thu, 7 Mar 2019 16:04:14 -0800 Subject: [PATCH] Clean up a clang analyzer cast error ~/Texture/Source/Private/ASMutableElementMap.mm:32:24: warning: Conversion from value of type 'NSMutableArray *' to incompatible type 'ASMutableCollectionElementTwoDimensionalArray *' _sectionsOfItems = (id)ASTwoDimensionalArrayDeepMutableCopy(items); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. --- Source/Private/ASMutableElementMap.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Private/ASMutableElementMap.mm b/Source/Private/ASMutableElementMap.mm index 0ef1f0170..dffe47d0f 100644 --- a/Source/Private/ASMutableElementMap.mm +++ b/Source/Private/ASMutableElementMap.mm @@ -29,7 +29,7 @@ - (instancetype)initWithSections:(NSArray *)sections items:(ASColle { if (self = [super init]) { _sections = [sections mutableCopy]; - _sectionsOfItems = (id)ASTwoDimensionalArrayDeepMutableCopy(items); + _sectionsOfItems = (ASMutableCollectionElementTwoDimensionalArray *)ASTwoDimensionalArrayDeepMutableCopy(items); _supplementaryElements = [ASMutableElementMap deepMutableCopyOfElementsDictionary:supplementaryElements]; } return self;