From d29606516a46291ed51c4c250490e90e5b16778b Mon Sep 17 00:00:00 2001 From: Martin Baker Date: Wed, 27 Aug 2014 14:57:12 +0100 Subject: [PATCH] fixed string for 32/64-bit compatibility NSInteger now cast to long for the NSException --- UIImage+Resize.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UIImage+Resize.m b/UIImage+Resize.m index af9c4e8..085a46b 100755 --- a/UIImage+Resize.m +++ b/UIImage+Resize.m @@ -86,7 +86,7 @@ - (UIImage *)resizedImageWithContentMode:(UIViewContentMode)contentMode break; default: - [NSException raise:NSInvalidArgumentException format:@"Unsupported content mode: %d", contentMode]; + [NSException raise:NSInvalidArgumentException format:@"Unsupported content mode: %ld", (long)contentMode]; } CGSize newSize = CGSizeMake(self.size.width * ratio, self.size.height * ratio);