Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
fixed string for 32/64-bit compatibility
Browse files Browse the repository at this point in the history
NSInteger now cast to long for the NSException
  • Loading branch information
martinjbaker committed Aug 27, 2014
1 parent 493b1f2 commit d296065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UIImage+Resize.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d296065

Please sign in to comment.