UIWebViewNavigationType
is defined as
typedef NS_ENUM(NSInteger, UIWebViewNavigationType) {
// ...
};
and NSInteger
is int
on 32-bit and long
on 64-bit platforms. Therefore you
should cast the value to long
NSLog(@"expected:%ld, got:%ld", (long)UIWebViewNavigationTypeLinkClicked,
(long)navigationType);
to make it compile without warnings (and work correctly) in all cases.