Permalink
Browse files

Fixed compiler warning by changing an NSInteger to NSUInteger, to mat…

…ch 'count's return value. Fixed format string too.
  • Loading branch information...
1 parent ce9cae1 commit 10540ad022226583e066a1d01fdb565731969686 @seanm seanm committed Dec 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 MiscMerge/MiscMergeExpression.m
View
4 MiscMerge/MiscMergeExpression.m
@@ -441,14 +441,14 @@ - (NSString *)nameDescription
- (NSString *)description
{
- NSInteger index, count = [expressions count];
+ NSUInteger index, count = [expressions count];
NSMutableString *string = [NSMutableString stringWithFormat:@"%@(", [self nameDescription]];
for ( index = 0; index < count; index++ ) {
if ( index > 0 )
[string appendString:@","];
- [string appendFormat:@"%d=%@", index, [expressions objectAtIndex:index]];
+ [string appendFormat:@"%lu=%@", (unsigned long)index, [expressions objectAtIndex:index]];
}
[string appendString:@")"];

0 comments on commit 10540ad

Please sign in to comment.