You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2014/04/23 20:57:12 UTC
[4/7] git commit: CB-6212 iOS: fix warnings compiled under arm64
64-bit
CB-6212 iOS: fix warnings compiled under arm64 64-bit
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/commit/175f02ed
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/tree/175f02ed
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/diff/175f02ed
Branch: refs/heads/master
Commit: 175f02ed6f19b4912eb345448d38d54c6c61d6e9
Parents: ab8a448
Author: James Jong <wj...@gmail.com>
Authored: Wed Mar 12 13:01:29 2014 -0400
Committer: James Jong <wj...@gmail.com>
Committed: Wed Mar 12 13:01:29 2014 -0400
----------------------------------------------------------------------
src/ios/CDVLocation.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/blob/175f02ed/src/ios/CDVLocation.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVLocation.m b/src/ios/CDVLocation.m
index 527a884..d52b03d 100644
--- a/src/ios/CDVLocation.m
+++ b/src/ios/CDVLocation.m
@@ -293,7 +293,7 @@
{
NSMutableDictionary* posError = [NSMutableDictionary dictionaryWithCapacity:2];
- [posError setObject:[NSNumber numberWithInt:errorCode] forKey:@"code"];
+ [posError setObject:[NSNumber numberWithUnsignedInteger:errorCode] forKey:@"code"];
[posError setObject:message ? message:@"" forKey:@"message"];
CDVPluginResult* result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsDictionary:posError];