From 10382c9f551fef0a05a511b45be78863599b77e2 Mon Sep 17 00:00:00 2001 From: Nick Lockwood Date: Thu, 13 Mar 2014 11:24:20 +0000 Subject: [PATCH] Fixed integer precision warnings on ARM64 --- AngleGradient/AngleGradientLayer.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AngleGradient/AngleGradientLayer.m b/AngleGradient/AngleGradientLayer.m index e9bfbf4..c09dc52 100644 --- a/AngleGradient/AngleGradientLayer.m +++ b/AngleGradient/AngleGradientLayer.m @@ -93,7 +93,7 @@ - (CGImageRef)newImageGradientInRect:(CGRect)rect int bpp = 4 * bitsPerComponent / 8; int byteCount = w * h * bpp; - int colorCount = self.colors.count; + int colorCount = (int)self.colors.count; int locationCount = 0; int* colors = NULL; float* locations = NULL; @@ -125,7 +125,7 @@ - (CGImageRef)newImageGradientInRect:(CGRect)rect } } if (self.locations.count > 0 && self.locations.count == colorCount) { - locationCount = self.locations.count; + locationCount = (int)self.locations.count; locations = calloc(locationCount, sizeof(locations[0])); float *p = locations; for (NSNumber *n in self.locations) {