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

Fixed integer precision warnings on ARM64 #4

Merged
merged 1 commit into from
Mar 13, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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