Fix a compilation warning on Iphone 6+

This commit is contained in:
ylecollen 2015-01-27 10:37:15 +01:00
parent 3b6b4e633b
commit f6d3943534

View file

@ -166,11 +166,11 @@ static ContactManager* sharedContactManager = nil;
ABAddressBookRef ab = ABAddressBookCreateWithOptions(nil, nil);
ABRecordRef contactRecord;
int index;
CFIndex index;
CFMutableArrayRef people = (CFMutableArrayRef)ABAddressBookCopyArrayOfAllPeople(ab);
if (nil != people) {
int peopleCount = CFArrayGetCount(people);
CFIndex peopleCount = CFArrayGetCount(people);
for (index = 0; index < peopleCount; index++) {
contactRecord = (ABRecordRef)CFArrayGetValueAtIndex(people, index);