[Fuse-for-macosx-commits] SF.net SVN: fuse-for-macosx:[698] trunk/fuse/fusepb/controllers
Brought to you by:
fredm
From: <fr...@us...> - 2012-10-29 12:14:01
|
Revision: 698 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=698&view=rev Author: fredm Date: 2012-10-29 12:13:52 +0000 (Mon, 29 Oct 2012) Log Message: ----------- Fix some format strings. Modified Paths: -------------- trunk/fuse/fusepb/controllers/JoystickConfigurationController.m trunk/fuse/fusepb/controllers/MemoryBrowserController.m trunk/fuse/fusepb/controllers/PokeFinderController.m Modified: trunk/fuse/fusepb/controllers/JoystickConfigurationController.m =================================================================== --- trunk/fuse/fusepb/controllers/JoystickConfigurationController.m 2012-10-29 12:12:40 UTC (rev 697) +++ trunk/fuse/fusepb/controllers/JoystickConfigurationController.m 2012-10-29 12:13:52 UTC (rev 698) @@ -215,9 +215,9 @@ } for( i=0; i<10; i++ ) { - [joyXAxis addItemWithTitle:[NSString stringWithFormat:@"%d", i]]; + [joyXAxis addItemWithTitle:[NSString stringWithFormat:@"%ld", i]]; [[joyXAxis lastItem] setTag:i]; - [joyYAxis addItemWithTitle:[NSString stringWithFormat:@"%d", i]]; + [joyYAxis addItemWithTitle:[NSString stringWithFormat:@"%ld", i]]; [[joyYAxis lastItem] setTag:i]; if( i == x_axis ) { Modified: trunk/fuse/fusepb/controllers/MemoryBrowserController.m =================================================================== --- trunk/fuse/fusepb/controllers/MemoryBrowserController.m 2012-10-29 12:12:40 UTC (rev 697) +++ trunk/fuse/fusepb/controllers/MemoryBrowserController.m 2012-10-29 12:13:52 UTC (rev 698) @@ -84,7 +84,7 @@ [tableContents retain]; for( i = 0; i<= 0xfff; i++ ) { - address = [NSString stringWithFormat:@"%04X", i * 0x10]; + address = [NSString stringWithFormat:@"%04lX", i * 0x10]; hex = [NSMutableString stringWithCapacity:64]; data = [NSMutableString stringWithCapacity:20]; Modified: trunk/fuse/fusepb/controllers/PokeFinderController.m =================================================================== --- trunk/fuse/fusepb/controllers/PokeFinderController.m 2012-10-29 12:12:40 UTC (rev 697) +++ trunk/fuse/fusepb/controllers/PokeFinderController.m 2012-10-29 12:13:52 UTC (rev 698) @@ -186,7 +186,7 @@ for( offset = 0; offset < 0x2000; offset++ ) if( !(pokefinder_impossible[page][offset/8] & 1 << (offset & 7)) ) { NSNumber *p = [NSNumber numberWithUnsignedLong:page/2]; - NSString *o = [NSString stringWithFormat:@"0x%04X", offset + 8192 * (page & 1)]; + NSString *o = [NSString stringWithFormat:@"0x%04lX", offset + 8192 * (page & 1)]; NSNumber *on = [NSNumber numberWithUnsignedLong:offset + 8192 * (page & 1)]; [tableContents addObject: [NSDictionary dictionaryWithObjectsAndKeys: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |