mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +00:00
Avoid compiler warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7191 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
30730bb37e
commit
0f42d88560
1 changed files with 16 additions and 18 deletions
|
@ -2159,6 +2159,9 @@ static Class doubleNumberClass;
|
||||||
|
|
||||||
- (NSComparisonResult) compare: (NSNumber*)other
|
- (NSComparisonResult) compare: (NSNumber*)other
|
||||||
{
|
{
|
||||||
|
double otherValue;
|
||||||
|
double myValue;
|
||||||
|
|
||||||
if (other == self)
|
if (other == self)
|
||||||
{
|
{
|
||||||
return NSOrderedSame;
|
return NSOrderedSame;
|
||||||
|
@ -2168,10 +2171,6 @@ static Class doubleNumberClass;
|
||||||
[NSException raise: NSInvalidArgumentException
|
[NSException raise: NSInvalidArgumentException
|
||||||
format: @"nil argument for compare:"];
|
format: @"nil argument for compare:"];
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
double otherValue;
|
|
||||||
double myValue;
|
|
||||||
|
|
||||||
myValue = [self doubleValue];
|
myValue = [self doubleValue];
|
||||||
otherValue = [other doubleValue];
|
otherValue = [other doubleValue];
|
||||||
|
@ -2188,7 +2187,6 @@ static Class doubleNumberClass;
|
||||||
{
|
{
|
||||||
return NSOrderedDescending;
|
return NSOrderedDescending;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue