Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed warnings when compiling in upcoming version of Xcode

  • Loading branch information...
commit 941380e219ca4921ecef955eb3bd98b817cbf1da 1 parent 77103a1
@synchromation synchromation authored
View
2  Categories/UIImage+Blurring.m
@@ -48,7 +48,7 @@ -(UIImage*)gaussianBlurWithBias:(NSInteger)bias
void* outt = malloc(n);
vImage_Buffer src = {data, height, width, bytesPerRow};
vImage_Buffer dest = {outt, height, width, bytesPerRow};
- vImageConvolveWithBias_ARGB8888(&src, &dest, NULL, 0, 0, __s_gaussianblur_kernel_5x5, 5, 5, 256/*divisor*/, bias, NULL, kvImageCopyInPlace);
+ vImageConvolveWithBias_ARGB8888(&src, &dest, NULL, 0, 0, __s_gaussianblur_kernel_5x5, 5, 5, 256/*divisor*/, (int32_t)bias, NULL, kvImageCopyInPlace);
memcpy(data, outt, n);
free(outt);
View
6 Categories/UIImage+Filtering.m
@@ -302,7 +302,7 @@ -(UIImage*)embossWithBias:(NSInteger)bias
void* outt = malloc(n);
vImage_Buffer src = {data, height, width, bytesPerRow};
vImage_Buffer dest = {outt, height, width, bytesPerRow};
- vImageConvolveWithBias_ARGB8888(&src, &dest, NULL, 0, 0, __s_emboss_kernel_3x3, 3, 3, 1/*divisor*/, bias, NULL, kvImageCopyInPlace);
+ vImageConvolveWithBias_ARGB8888(&src, &dest, NULL, 0, 0, __s_emboss_kernel_3x3, 3, 3, 1/*divisor*/, (int32_t)bias, NULL, kvImageCopyInPlace);
memcpy(data, outt, n);
@@ -624,7 +624,7 @@ -(UIImage*)sharpenWithBias:(NSInteger)bias
void* outt = malloc(n);
vImage_Buffer src = {data, height, width, bytesPerRow};
vImage_Buffer dest = {outt, height, width, bytesPerRow};
- vImageConvolveWithBias_ARGB8888(&src, &dest, NULL, 0, 0, __s_sharpen_kernel_3x3, 3, 3, 1/*divisor*/, bias, NULL, kvImageCopyInPlace);
+ vImageConvolveWithBias_ARGB8888(&src, &dest, NULL, 0, 0, __s_sharpen_kernel_3x3, 3, 3, 1/*divisor*/, (int32_t)bias, NULL, kvImageCopyInPlace);
memcpy(data, outt, n);
@@ -665,7 +665,7 @@ -(UIImage*)unsharpenWithBias:(NSInteger)bias
void* outt = malloc(n);
vImage_Buffer src = {data, height, width, bytesPerRow};
vImage_Buffer dest = {outt, height, width, bytesPerRow};
- vImageConvolveWithBias_ARGB8888(&src, &dest, NULL, 0, 0, __s_unsharpen_kernel_3x3, 3, 3, 9/*divisor*/, bias, NULL, kvImageCopyInPlace);
+ vImageConvolveWithBias_ARGB8888(&src, &dest, NULL, 0, 0, __s_unsharpen_kernel_3x3, 3, 3, 9/*divisor*/, (int32_t)bias, NULL, kvImageCopyInPlace);
memcpy(data, outt, n);
View
4 Classes/NYXProgressiveImageView.m
@@ -199,7 +199,7 @@ -(void)connection:(__unused NSURLConnection*)connection didReceiveData:(NSData*)
{
[_dataTemp appendData:data];
- const NSUInteger len = [_dataTemp length];
+ const long long len = (long long)[_dataTemp length];
CGImageSourceUpdateData(_imageSource, (__bridge CFDataRef)_dataTemp, (len == _expectedSize) ? true : false);
if (_imageHeight > 0 && _imageWidth > 0)
@@ -356,7 +356,7 @@ -(NSString*)cachedImageSystemName
return @"";
unsigned char result[CC_MD5_DIGEST_LENGTH];
- CC_MD5(concat_str, strlen(concat_str), result);
+ CC_MD5(concat_str, (CC_LONG)strlen(concat_str), result);
NSMutableString* hash = [[NSMutableString alloc] init];
for (unsigned int i = 0; i < CC_MD5_DIGEST_LENGTH; i++)
Please sign in to comment.
Something went wrong with that request. Please try again.