From cd336bfdd98b9d5c749d4df3cd4baa36cc838939 Mon Sep 17 00:00:00 2001 From: Indragie Karunaratne Date: Sun, 9 Mar 2014 01:17:52 -0700 Subject: [PATCH] Fix implicit conversion warnings --- RMPhoneFormat/RMPhoneFormat.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RMPhoneFormat/RMPhoneFormat.m b/RMPhoneFormat/RMPhoneFormat.m index 803dfe8..7f1d4ef 100644 --- a/RMPhoneFormat/RMPhoneFormat.m +++ b/RMPhoneFormat/RMPhoneFormat.m @@ -618,7 +618,7 @@ + (void)initialize { + (NSString *)strip:(NSString *)str { NSMutableString *res = [NSMutableString stringWithString:str]; - for (int i = [res length] - 1; i >= 0; i--) { + for (NSInteger i = [res length] - 1; i >= 0; i--) { if (![phoneChars characterIsMember:[res characterAtIndex:i]]) { [res deleteCharactersInRange:NSMakeRange(i, 1)]; } @@ -861,7 +861,7 @@ - (CallingCodeInfo *)callingCodeInfo:(NSString *)callingCode { NSNumber *num = [_callingCodeOffsets objectForKey:callingCode]; if (num) { const uint8_t *bytes = [_data bytes]; - uint32_t start = [num longValue]; + uint32_t start = (uint32_t)[num longValue]; uint32_t offset = start; res = [[CallingCodeInfo alloc] init]; res.callingCode = callingCode;