Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int')

1k Views Asked by At

Xcode reports me the following warning:

Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int')

The line which produces this warning is:

 NSUInteger radius = // some value;
 vImage_Buffer effectOutBuffer;

vImageBoxConvolve_ARGB8888(&effectInBuffer, &effectOutBuffer, NULL, 0, 0, radius, radius, 0, kvImageEdgeExtend);

How do I get rid of this warning?

0

There are 0 best solutions below