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:
Jesse Squires 2017-02-10 16:21:00 -08:00 committed by Facebook Github Bot
parent 80ad941369
commit 7d55bd80ae

View file

@ -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 {