Skip to content

Commit a9b7e61

Browse files
committed
Fixed UB warning in -hash
-hash should only use unsigned integer
1 parent ca47649 commit a9b7e61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TLIndexPathTools/Data Model/TLIndexPathItem.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ + (NSArray *)identifiersForIndexPathItems:(NSArray *)indexPathItems
4949

5050
- (NSUInteger)hash
5151
{
52-
NSInteger hash = 0;
52+
NSUInteger hash = 0;
5353
hash += 31 * hash + [self.identifier hash];
5454
hash += 31 * hash + [self.sectionName hash];
5555
hash += 31 * hash + [self.cellIdentifier hash];

0 commit comments

Comments
 (0)