Skip to content

Commit c207e95

Browse files
author
Mallory Paine
committed
Fix warnings
1 parent 7fd5c02 commit c207e95

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

FastImageCache/FICImageTable.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ - (FICImageTableChunk *)_chunkAtIndex:(NSInteger)index {
239239
}
240240

241241
if (!chunk) {
242-
NSString *message = [NSString stringWithFormat:@"*** FIC Error: %s failed to get chunk for index %d.", __PRETTY_FUNCTION__, index];
242+
NSString *message = [NSString stringWithFormat:@"*** FIC Error: %s failed to get chunk for index %ld.", __PRETTY_FUNCTION__, (long)index];
243243
[[FICImageCache sharedImageCache] _logMessage:message];
244244
}
245245

@@ -483,7 +483,7 @@ - (FICImageTableEntry *)_entryDataAtIndex:(NSInteger)index {
483483
[_lock unlock];
484484

485485
if (!entryData) {
486-
NSString *message = [NSString stringWithFormat:@"*** FIC Error: %s failed to get entry for index %d.", __PRETTY_FUNCTION__, index];
486+
NSString *message = [NSString stringWithFormat:@"*** FIC Error: %s failed to get entry for index %ld.", __PRETTY_FUNCTION__, (long)index];
487487
[[FICImageCache sharedImageCache] _logMessage:message];
488488
}
489489

FastImageCacheDemo/Classes/FICDTableView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ - (void)_screenDidUpdateWhileScrolling:(CADisplayLink *)displayLink {
101101
// We don't want the logging of scrolling performance to be able to impact the scrolling performance,
102102
// so move both the logging and the string formatting onto a GCD serial queue.
103103
dispatch_async(__dispatchQueue, ^{
104-
NSLog(@"*** FIC Demo: Last FPS = %d, Average FPS = %.2f", lastFPS, averageFPS);
104+
NSLog(@"*** FIC Demo: Last FPS = %ld, Average FPS = %.2f", (long)lastFPS, averageFPS);
105105
});
106106

107107
_framesInLastInterval = 0;

0 commit comments

Comments
 (0)