From 11e553af79f0f06a17f1ee17292f751f44a093fd Mon Sep 17 00:00:00 2001 From: Jarod Luebbert Date: Sun, 21 Oct 2012 10:54:41 -0700 Subject: [PATCH] Suppress compiler warnings for NSLog string format --- lib/UIKit/TUIFastIndexPath.m | 2 +- lib/UIKit/TUIView.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/UIKit/TUIFastIndexPath.m b/lib/UIKit/TUIFastIndexPath.m index 779d913a..a8f12f08 100644 --- a/lib/UIKit/TUIFastIndexPath.m +++ b/lib/UIKit/TUIFastIndexPath.m @@ -85,7 +85,7 @@ - (void)encodeWithCoder:(NSCoder *)coder - (NSString *)description { - return [NSString stringWithFormat:@"[%d,%d]", section, row]; + return [NSString stringWithFormat:@"[%ld,%ld]", section, row]; } - (NSUInteger)section diff --git a/lib/UIKit/TUIView.m b/lib/UIKit/TUIView.m index 91d703b1..ac7ec38a 100644 --- a/lib/UIKit/TUIView.m +++ b/lib/UIKit/TUIView.m @@ -454,7 +454,7 @@ - (void)setContentMode:(TUIViewContentMode)contentMode } else if(contentMode == TUIViewContentModeScaleAspectFill) { _layer.contentsGravity = kCAGravityResizeAspectFill; } else { - NSAssert1(NO, @"%lu is not a valid contentMode.", contentMode); + NSAssert1(NO, @"%ud is not a valid contentMode.", contentMode); } }