From cf48c7da5a33e1035b54473e819ce81c6397aefa Mon Sep 17 00:00:00 2001 From: sdrozzy Date: Mon, 17 Nov 2014 13:57:44 -0800 Subject: [PATCH] Changed integer types to remove implicit conversion warnings --- TWSReleaseNotesView/UIImage+ImageEffects.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TWSReleaseNotesView/UIImage+ImageEffects.m b/TWSReleaseNotesView/UIImage+ImageEffects.m index ae11178..9671c29 100644 --- a/TWSReleaseNotesView/UIImage+ImageEffects.m +++ b/TWSReleaseNotesView/UIImage+ImageEffects.m @@ -132,7 +132,7 @@ - (UIImage *)applyTintEffectWithColor:(UIColor *)tintColor { const CGFloat EffectColorAlpha = 0.6; UIColor *effectColor = tintColor; - int componentCount = CGColorGetNumberOfComponents(tintColor.CGColor); + NSInteger componentCount = CGColorGetNumberOfComponents(tintColor.CGColor); if (componentCount == 2) { CGFloat b; if ([tintColor getWhite:&b alpha:NULL]) { @@ -205,7 +205,7 @@ - (UIImage *)applyBlurWithRadius:(CGFloat)blurRadius tintColor:(UIColor *)tintCo // ... if d is odd, use three box-blurs of size 'd', centered on the output pixel. // CGFloat inputRadius = blurRadius * [[UIScreen mainScreen] scale]; - NSUInteger radius = floor(inputRadius * 3. * sqrt(2 * M_PI) / 4 + 0.5); + uint32_t radius = floor(inputRadius * 3. * sqrt(2 * M_PI) / 4 + 0.5); if (radius % 2 != 1) { radius += 1; // force radius to be odd so that the three box-blur methodology works. }