Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
Fixed integer precision warnings on ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Mar 13, 2014
1 parent 64d09e4 commit 10382c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AngleGradient/AngleGradientLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 10382c9

Please sign in to comment.