I have a method loading
:
-(void)loading:(MKTileOverlayPath)path ... {
...
Within this method I am trying to calculate something
NSInteger *a = pow(2, path.z) - path.y - 1;
I get an error:
Initializing 'NSInteger *' (aka 'long *') with an expression of incompatible type 'double'
Why is that double? path.z and path.y are, as stated in the documentation MKTileOverlayPath, integer. And pow(2, path.z)
cannot result in an float
or double
neither, when there are only integers
... Why is that?