Skip to content

Commit 0071ed4

Browse files
committed
Fix warnings
1 parent 925ee66 commit 0071ed4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

FastImageCache/FICImageTable.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ - (instancetype)initWithFormat:(FICImageFormat *)imageFormat imageCache:(FICImag
189189
NSInteger goalEntriesPerChunk = goalChunkLength / _entryLength;
190190
_entriesPerChunk = MAX(4, goalEntriesPerChunk);
191191
if ([self _maximumCount] > [_imageFormat maximumCount]) {
192-
NSString *message = [NSString stringWithFormat:@"*** FIC Warning: growing desired maximumCount (%ld) for format %@ to fill a chunk (%d)", (long)[_imageFormat maximumCount], [_imageFormat name], [self _maximumCount]];
192+
NSString *message = [NSString stringWithFormat:@"*** FIC Warning: growing desired maximumCount (%ld) for format %@ to fill a chunk (%ld)", (long)[_imageFormat maximumCount], [_imageFormat name], (long)[self _maximumCount]];
193193
[self.imageCache _logMessage:message];
194194
}
195195
_chunkLength = (size_t)(_entryLength * _entriesPerChunk);
@@ -589,7 +589,7 @@ - (NSInteger)_nextEntryIndex {
589589
}
590590

591591
if (index >= [self _maximumCount]) {
592-
NSString *message = [NSString stringWithFormat:@"FICImageTable - unable to evict entry from table '%@' to make room. New index %ld, desired max %d", [_imageFormat name], (long)index, [self _maximumCount]];
592+
NSString *message = [NSString stringWithFormat:@"FICImageTable - unable to evict entry from table '%@' to make room. New index %ld, desired max %ld", [_imageFormat name], (long)index, (long)[self _maximumCount]];
593593
[self.imageCache _logMessage:message];
594594
}
595595

0 commit comments

Comments
 (0)