Bug 933124 - Fix -Wformat warning in nsObjcExceptions.h. r=dougt
authorChris Peterson <cpeterson@mozilla.com>
Tue, 29 Oct 2013 21:04:41 -0700
changeset 162260 a769047ad5ad1b2fa026b34a25eb194c0bf23052
parent 162259 a96aea73b2cf2d8954ef06db5748abf70517d9a0
child 162261 04811425fc1df9581cb17e22d5823469ea31bf56
push idunknown
push userunknown
push dateunknown
reviewersdougt
bugs933124
milestone28.0a1
Bug 933124 - Fix -Wformat warning in nsObjcExceptions.h. r=dougt
xpcom/base/nsObjCExceptions.h
--- a/xpcom/base/nsObjCExceptions.h
+++ b/xpcom/base/nsObjCExceptions.h
@@ -80,18 +80,18 @@ static void nsObjCExceptionLog(NSExcepti
       int pid = [[NSProcessInfo processInfo] processIdentifier];
       [args addObject:[NSString stringWithFormat:@"%d", pid]];
 
       [args addObject:@"-printHeader"];
 
       unsigned int stackCount = [stackTrace count];
       unsigned int stackIndex = 0;
       for (; stackIndex < stackCount; stackIndex++) {
-        NSUInteger address =
-          [[stackTrace objectAtIndex:stackIndex] unsignedIntegerValue];
+        unsigned long address =
+          [[stackTrace objectAtIndex:stackIndex] unsignedLongValue];
         [args addObject:[NSString stringWithFormat:@"0x%lx", address]];
       }
 
       NSPipe *outPipe = [NSPipe pipe];
 
       NSTask *task = [[NSTask alloc] init];
       [task setLaunchPath:@"/usr/bin/atos"];
       [task setArguments:args];