From f63d1de5460968e5466be02676c8c6f9ed8787b6 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Mon, 14 Mar 2011 01:26:57 +0000 Subject: - Fix more warnings --- Source/MGTemplateEngine.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/MGTemplateEngine.m') diff --git a/Source/MGTemplateEngine.m b/Source/MGTemplateEngine.m index 17acae65..1cf483f8 100644 --- a/Source/MGTemplateEngine.m +++ b/Source/MGTemplateEngine.m @@ -312,9 +312,9 @@ NSString *digits; BOOL scanned = [scanner scanCharactersFromSet:numbersSet intoString:&digits]; if (scanned && digits && [digits length] > 0) { - NSInteger index = [digits integerValue]; - if (index >= 0 && index < [((NSArray *)currObj) count]) { - newObj = [((NSArray *)currObj) objectAtIndex:index]; + NSInteger indexValue = [digits integerValue]; + if (indexValue >= 0 && indexValue < (NSInteger)[((NSArray *)currObj) count]) { + newObj = [((NSArray *)currObj) objectAtIndex:indexValue]; } } } -- cgit v1.2.3