Skip to content

Commit 885db0a

Browse files
committed
Merge branch 'release/0.20.0-pre1'
2 parents a39a1e0 + 9fc0703 commit 885db0a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Code/CoreData/RKManagedObjectMappingOperationDataSource.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ - (id)mappingOperation:(RKMappingOperation *)mappingOperation targetObjectForRep
167167
if (entityMapping.entityIdentifier.predicate) objects = [objects filteredArrayUsingPredicate:entityMapping.entityIdentifier.predicate];
168168
if ([objects count] > 0) {
169169
managedObject = objects[0];
170-
if ([objects count] > 1) RKLogWarning(@"Managed object cache returned %d objects for the identifier configured for the '%@' entity, expected 1.", [objects count], [entity name]);
170+
if ([objects count] > 1) RKLogWarning(@"Managed object cache returned %ld objects for the identifier configured for the '%@' entity, expected 1.", (long) [objects count], [entity name]);
171171
}
172172
if (managedObject && [self.managedObjectCache respondsToSelector:@selector(didFetchObject:)]) {
173173
[self.managedObjectCache didFetchObject:managedObject];

Code/CoreData/RKRelationshipConnectionOperation.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ - (id)findConnected
147147
if ([self.connection.relationship isToMany]) {
148148
connectionResult = managedObjects;
149149
} else {
150-
if ([managedObjects count] > 1) RKLogWarning(@"Retrieved %d objects satisfying connection criteria for one-to-one relationship connection: only the first result will be connected.", [managedObjects count]);
151-
connectionResult = managedObjects[0];
150+
if ([managedObjects count] > 1) RKLogWarning(@"Retrieved %ld objects satisfying connection criteria for one-to-one relationship connection: only the first result will be connected.", (long) [managedObjects count]);
151+
if ([managedObjects count]) connectionResult = managedObjects[0];
152152
}
153153
} else if ([self.connection isKeyPathConnection]) {
154154
connectionResult = [self.managedObject valueForKeyPath:self.connection.keyPath];

Code/Network/RKPaginator.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ - (void)waitUntilFinished
216216

217217
- (NSString *)description
218218
{
219-
return [NSString stringWithFormat:@"<%@: %p patternURL=%@ isLoaded=%@ perPage=%d currentPage=%@ pageCount=%@ objectCount=%@>",
220-
NSStringFromClass([self class]), self, self.patternURL, self.isLoaded ? @"YES" : @"NO", self.perPage,
219+
return [NSString stringWithFormat:@"<%@: %p patternURL=%@ isLoaded=%@ perPage=%ld currentPage=%@ pageCount=%@ objectCount=%@>",
220+
NSStringFromClass([self class]), self, self.patternURL, self.isLoaded ? @"YES" : @"NO", (long) self.perPage,
221221
[self hasCurrentPage] ? @(self.currentPage) : @"???",
222222
[self hasPageCount] ? @(self.pageCount) : @"???",
223223
[self hasObjectCount] ? @(self.objectCount) : @"???"];

0 commit comments

Comments
 (0)