Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit e010cd3

Browse files
maickiAdlai Holler
authored andcommitted
Fix compiler warnings in _ASHierarchyChangeSet on 32bit (#1982)
1 parent 7b2e14c commit e010cd3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

AsyncDisplayKit/Private/_ASHierarchyChangeSet.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ - (void)_sortAndCoalesceChangeArrays
277277
for (_ASHierarchySectionChange *change in _reloadSectionChanges) {
278278
NSIndexSet *newSections = [change.indexSet as_indexesByMapping:^(NSUInteger idx) {
279279
NSUInteger newSec = [self newSectionForOldSection:idx];
280-
ASDisplayNodeAssert(newSec != NSNotFound, @"Request to reload and delete same section %zu", idx);
280+
ASDisplayNodeAssert(newSec != NSNotFound, @"Request to reload and delete same section %tu", idx);
281281
return newSec;
282282
}];
283283

@@ -356,7 +356,7 @@ - (void)_validateUpdate
356356
NSInteger deletedSectionCount = _deletedSections.count;
357357
// Assert that the new section count is correct.
358358
if (newSectionCount != oldSectionCount + insertedSectionCount - deletedSectionCount) {
359-
ASFailUpdateValidation(@"Invalid number of sections. The number of sections after the update (%zd) must be equal to the number of sections before the update (%zd) plus or minus the number of sections inserted or deleted (%zu inserted, %zu deleted)", newSectionCount, oldSectionCount, insertedSectionCount, deletedSectionCount);
359+
ASFailUpdateValidation(@"Invalid number of sections. The number of sections after the update (%zd) must be equal to the number of sections before the update (%zd) plus or minus the number of sections inserted or deleted (%tu inserted, %tu deleted)", newSectionCount, oldSectionCount, insertedSectionCount, deletedSectionCount);
360360
return;
361361
}
362362

0 commit comments

Comments
 (0)