Repository: cordova-plugin-inappbrowser Updated Branches: refs/heads/dev aa9a5db94 -> fceea502a
CB-6212 iOS: fix warnings compiled under arm64 64-bit Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/fceea502 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/fceea502 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/fceea502 Branch: refs/heads/dev Commit: fceea502a3f7f3308247a4bb2841b60a5d902c12 Parents: aa9a5db Author: James Jong <[email protected]> Authored: Wed Mar 12 13:35:17 2014 -0400 Committer: James Jong <[email protected]> Committed: Wed Mar 12 13:35:17 2014 -0400 ---------------------------------------------------------------------- src/ios/CDVInAppBrowser.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/fceea502/src/ios/CDVInAppBrowser.m ---------------------------------------------------------------------- diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m index 88b737c..2b0dc41 100644 --- a/src/ios/CDVInAppBrowser.m +++ b/src/ios/CDVInAppBrowser.m @@ -395,7 +395,7 @@ if (self.callbackId != nil) { NSString* url = [self.inAppBrowserViewController.currentURL absoluteString]; CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsDictionary:@{@"type":@"loaderror", @"url":url, @"code": [NSNumber numberWithInt:error.code], @"message": error.localizedDescription}]; + messageAsDictionary:@{@"type":@"loaderror", @"url":url, @"code": [NSNumber numberWithInteger:error.code], @"message": error.localizedDescription}]; [pluginResult setKeepCallback:[NSNumber numberWithBool:YES]]; [self.commandDelegate sendPluginResult:pluginResult callbackId:self.callbackId]; @@ -834,7 +834,7 @@ - (void)webView:(UIWebView*)theWebView didFailLoadWithError:(NSError*)error { // log fail message, stop spinner, update back/forward - NSLog(@"webView:didFailLoadWithError - %i: %@", error.code, [error localizedDescription]); + NSLog(@"webView:didFailLoadWithError - %ld: %@", (long)error.code, [error localizedDescription]); self.backButton.enabled = theWebView.canGoBack; self.forwardButton.enabled = theWebView.canGoForward;
