From 7654a9f82f621cc668414fc0b632a92382f7e51c Mon Sep 17 00:00:00 2001 From: Abhi Beckert Date: Sat, 16 May 2015 08:38:16 +1000 Subject: Fix octal formatting by Andreas Beier --- Source/SPFieldEditorController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/SPFieldEditorController.m') diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m index c791dfc5..fbba1a4b 100644 --- a/Source/SPFieldEditorController.m +++ b/Source/SPFieldEditorController.m @@ -1073,7 +1073,7 @@ typedef enum { } [bitSheetIntegerTextField setStringValue:[[NSNumber numberWithUnsignedLongLong:intValue] stringValue]]; [bitSheetHexTextField setStringValue:[NSString stringWithFormat:@"%lX", (unsigned long)intValue]]; - [bitSheetOctalTextField setStringValue:[NSString stringWithFormat:@"%llO", (unsigned long long)intValue]]; + [bitSheetOctalTextField setStringValue:[NSString stringWithFormat:@"%llo", (unsigned long long)intValue]]; // free old data if ( sheetEditData != nil ) { [sheetEditData release]; @@ -1199,7 +1199,7 @@ typedef enum { [[self valueForKeyPath:[NSString stringWithFormat:@"bitSheetBitButton%lu", i]] setState:NSOffState]; [bitSheetHexTextField setStringValue:[NSString stringWithFormat:@"%lX", (unsigned long)intValue]]; - [bitSheetOctalTextField setStringValue:[NSString stringWithFormat:@"%llO", (long long)intValue]]; + [bitSheetOctalTextField setStringValue:[NSString stringWithFormat:@"%llo", (long long)intValue]]; i = 0; while( intValue && i < maxBit ) @@ -1223,7 +1223,7 @@ typedef enum { [[self valueForKeyPath:[NSString stringWithFormat:@"bitSheetBitButton%ld", (long)i]] setState:NSOffState]; [bitSheetHexTextField setStringValue:[NSString stringWithFormat:@"%qX", intValue]]; - [bitSheetOctalTextField setStringValue:[NSString stringWithFormat:@"%llO", intValue]]; + [bitSheetOctalTextField setStringValue:[NSString stringWithFormat:@"%llo", intValue]]; i = 0; while( intValue && i < maxBit ) -- cgit v1.2.3