mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-22 16:58:23 +00:00
fix integer type inconsistency, potential over/underflow
Summary: Internal crash reports (see T15774792) indicate we're having integer overflow/underflow issues. I notcied this inconsistency, which was introduced by GH issues #431, #440. Differential Revision: D4546852 fbshipit-source-id: 67e56487cce02f082943f3008bcfcb5cf6205e0e
This commit is contained in:
parent
80ad941369
commit
7d55bd80ae
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@
|
|||
IGParameterAssert(sectionController != nil);
|
||||
|
||||
NSNumber *index = [self.sectionControllerToSectionMap objectForKey:sectionController];
|
||||
return index != nil ? [index unsignedIntegerValue] : NSNotFound;
|
||||
return index != nil ? [index integerValue] : NSNotFound;
|
||||
}
|
||||
|
||||
- (IGListSectionController <IGListSectionType> *)sectionControllerForSection:(NSInteger)section {
|
||||
|
|
|
|||
Loading…
Reference in a new issue