From 223eb3356c5499f9261931316284c942e5dcda0d Mon Sep 17 00:00:00 2001 From: rfm Date: Fri, 30 Sep 2011 20:31:15 +0000 Subject: [PATCH] Minor fixes git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33916 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 9 +++++++++ Source/NSBundle.m | 2 +- Source/NSNumberFormatter.m | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 458b96117..49c8ccd49 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2011-09-29 julian + + * Source/NSBundle.m: ([objectForInfoDictionaryKey:]) + Add missing one-line implementation. + +2011-09-29 Richard Frith-Macdonald + + * Source/NSNumberFormatter.m: Check for _C_BOOL definition. + 2011-09-07 Eric Wasylishen * Source/NSUserDefaults.m: diff --git a/Source/NSBundle.m b/Source/NSBundle.m index 0ff52ae07..6441dafd0 100644 --- a/Source/NSBundle.m +++ b/Source/NSBundle.m @@ -2099,7 +2099,7 @@ IF_NO_GC( - (id) objectForInfoDictionaryKey: (NSString *)key { - return nil; + return [[self infoDictionary] objectForKey: key]; } - (NSString*) developmentLocalization diff --git a/Source/NSNumberFormatter.m b/Source/NSNumberFormatter.m index bba30aeb2..4598f2e86 100644 --- a/Source/NSNumberFormatter.m +++ b/Source/NSNumberFormatter.m @@ -1105,9 +1105,11 @@ static NSUInteger _defaultBehavior = NSNumberFormatterBehavior10_4; * don't think it matters, because we don't bother with anything * smaller than int for NSNumbers */ +#if defined(_C_BOOL) case _C_BOOL: STRING_FROM_NUMBER(unum_format, (int)[anObject boolValue]); break; +#endif /* If it's not a type encoding that we recognise, let the receiver * cast it to a double, which probably has enough precision for what * we need. This needs testing with NSDecimalNumber though, because