mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
fix indentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27474 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ba9a6dff92
commit
0488c7760b
1 changed files with 16 additions and 16 deletions
|
@ -355,15 +355,15 @@ static NSDecimalNumber *one;
|
||||||
NSString *s;
|
NSString *s;
|
||||||
float v = *(float *)value;
|
float v = *(float *)value;
|
||||||
if (GSIsNAN(v))
|
if (GSIsNAN(v))
|
||||||
{
|
{
|
||||||
DESTROY(self);
|
DESTROY(self);
|
||||||
return RETAIN(notANumber);
|
return RETAIN(notANumber);
|
||||||
}
|
}
|
||||||
if (GSIsInf(v))
|
if (GSIsInf(v))
|
||||||
{
|
{
|
||||||
DESTROY(self);
|
DESTROY(self);
|
||||||
return (v < 0.0) ? RETAIN(minNumber) : RETAIN(maxNumber);
|
return (v < 0.0) ? RETAIN(minNumber) : RETAIN(maxNumber);
|
||||||
}
|
}
|
||||||
s = [[NSString alloc] initWithFormat: @"%g"
|
s = [[NSString alloc] initWithFormat: @"%g"
|
||||||
locale: GSPrivateDefaultLocale(), (double)v];
|
locale: GSPrivateDefaultLocale(), (double)v];
|
||||||
self = [self initWithString: s];
|
self = [self initWithString: s];
|
||||||
|
@ -377,15 +377,15 @@ static NSDecimalNumber *one;
|
||||||
NSString *s;
|
NSString *s;
|
||||||
double v = *(double *)value;
|
double v = *(double *)value;
|
||||||
if (GSIsNAN(v))
|
if (GSIsNAN(v))
|
||||||
{
|
{
|
||||||
DESTROY(self);
|
DESTROY(self);
|
||||||
return RETAIN(notANumber);
|
return RETAIN(notANumber);
|
||||||
}
|
}
|
||||||
if (GSIsInf(v))
|
if (GSIsInf(v))
|
||||||
{
|
{
|
||||||
DESTROY(self);
|
DESTROY(self);
|
||||||
return (v < 0.0) ? RETAIN(minNumber) : RETAIN(maxNumber);
|
return (v < 0.0) ? RETAIN(minNumber) : RETAIN(maxNumber);
|
||||||
}
|
}
|
||||||
s = [[NSString alloc] initWithFormat: @"%g"
|
s = [[NSString alloc] initWithFormat: @"%g"
|
||||||
locale: GSPrivateDefaultLocale(), v];
|
locale: GSPrivateDefaultLocale(), v];
|
||||||
self = [self initWithString: s];
|
self = [self initWithString: s];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue