mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
casts to avoid compiler warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24983 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
db7fa69b12
commit
bd64c2231b
1 changed files with 4 additions and 3 deletions
|
@ -66,12 +66,12 @@
|
|||
return [self attributedStringForZero];
|
||||
}
|
||||
|
||||
if (([anObject compare: zeroNumber] == NSOrderedDescending)
|
||||
if (([(NSNumber*)anObject compare: zeroNumber] == NSOrderedDescending)
|
||||
&& (_attributesForPositiveValues))
|
||||
{
|
||||
attr = _attributesForPositiveValues;
|
||||
}
|
||||
else if (([anObject compare: zeroNumber] == NSOrderedAscending)
|
||||
else if (([(NSNumber*)anObject compare: zeroNumber] == NSOrderedAscending)
|
||||
&& (_attributesForNegativeValues))
|
||||
{
|
||||
attr = _attributesForNegativeValues;
|
||||
|
@ -550,7 +550,8 @@
|
|||
return [[self attributedStringForZero] string];
|
||||
|
||||
useFormat = _positiveFormat;
|
||||
if ([anObject compare: [NSDecimalNumber zero]] == NSOrderedAscending)
|
||||
if ([(NSNumber*)anObject compare: [NSDecimalNumber zero]]
|
||||
== NSOrderedAscending)
|
||||
{
|
||||
useFormat = _negativeFormat;
|
||||
negativeNumber = YES;
|
||||
|
|
Loading…
Reference in a new issue