Skip to content

Commit

Permalink
Merge pull request #41 from synchromation/master
Browse files Browse the repository at this point in the history
Fixed warnings when compiling in upcoming version of Xcode
  • Loading branch information
Nyx0uf committed Jan 27, 2014
2 parents 77103a1 + 941380e commit 5fc65c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Categories/UIImage+Blurring.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
6 changes: 3 additions & 3 deletions Categories/UIImage+Filtering.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions Classes/NYXProgressiveImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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++)
Expand Down

0 comments on commit 5fc65c3

Please sign in to comment.