From 7d55bd80aeeb10fa6192fa15fbc1d2a82a2b37ac Mon Sep 17 00:00:00 2001 From: Jesse Squires Date: Fri, 10 Feb 2017 16:21:00 -0800 Subject: [PATCH] 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 --- Source/Internal/IGListSectionMap.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Internal/IGListSectionMap.m b/Source/Internal/IGListSectionMap.m index b5e9f5e7..66a9fded 100644 --- a/Source/Internal/IGListSectionMap.m +++ b/Source/Internal/IGListSectionMap.m @@ -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 *)sectionControllerForSection:(NSInteger)section {