Skip to content

Commit 4c979d4

Browse files
committed
Merge pull request rentzsch#141 from seanm/master
Minor warning fix, 64->32 truncation, format strings
2 parents 4f0f528 + 74dc7b0 commit 4c979d4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

MiscMerge/MiscMergeExpression.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -441,14 +441,14 @@ - (NSString *)nameDescription
441441

442442
- (NSString *)description
443443
{
444-
NSInteger index, count = [expressions count];
444+
NSUInteger index, count = [expressions count];
445445
NSMutableString *string = [NSMutableString stringWithFormat:@"%@(", [self nameDescription]];
446446

447447
for ( index = 0; index < count; index++ ) {
448448
if ( index > 0 )
449449
[string appendString:@","];
450450

451-
[string appendFormat:@"%d=%@", index, [expressions objectAtIndex:index]];
451+
[string appendFormat:@"%lu=%@", (unsigned long)index, [expressions objectAtIndex:index]];
452452
}
453453

454454
[string appendString:@")"];

templates/machine.m.motemplate

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ const struct <$managedObjectClassName$>FetchedProperties <$managedObjectClassNam
143143
result = [results objectAtIndex:0];
144144
break;
145145
default:
146-
NSLog(@"WARN fetch request <$FetchRequest.name$>: 0 or 1 objects expected, %u found (substitutionVariables:%@, results:%@)",
147-
(unsigned)[results count],
146+
NSLog(@"WARN fetch request <$FetchRequest.name$>: 0 or 1 objects expected, %lu found (substitutionVariables:%@, results:%@)",
147+
(unsigned long)[results count],
148148
substitutionVariables,
149149
results);
150150
}

0 commit comments

Comments
 (0)