Fix minor primitive type issue

Use unsigned NSUInteger instead of NSInteger.