diff options
author | Abhi Beckert <abhi@Twist-of-Lemon-2.local> | 2015-05-16 08:38:16 +1000 |
---|---|---|
committer | Abhi Beckert <abhi@Twist-of-Lemon-2.local> | 2015-05-16 08:38:16 +1000 |
commit | 7654a9f82f621cc668414fc0b632a92382f7e51c (patch) | |
tree | 921a781c919cfd3cfb3cf27e7509577e588e52cc | |
parent | 43b2e85f1d3324df46fafe63b4a8128e86ce8ca1 (diff) | |
download | sequelpro-7654a9f82f621cc668414fc0b632a92382f7e51c.tar.gz sequelpro-7654a9f82f621cc668414fc0b632a92382f7e51c.tar.bz2 sequelpro-7654a9f82f621cc668414fc0b632a92382f7e51c.zip |
Fix octal formatting by Andreas Beier
-rw-r--r-- | Source/SPFieldEditorController.m | 6 |
1 files changed, 3 insertions, 3 deletions
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 ) |