Minor cleanups.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32031 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2011-02-10 10:52:54 +00:00
parent d5e9a52e35
commit a63d65764c
15 changed files with 137 additions and 53 deletions

View file

@ -165,9 +165,11 @@ static NSDecimalNumber *one;
+ (void) initialize
{
NSDecimal d;
/* Initialize d to an empty structure to avoid compiler warnings.
* This also sets d.validNumber to NO ... which is what is actually needed.
*/
NSDecimal d = { 0 };
d.validNumber = NO;
notANumber = [[self alloc] initWithDecimal: d];
NSDecimalMax(&d);
maxNumber = [[self alloc] initWithDecimal: d];