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); } }