mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
fixup bool
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30061 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a3c8df89af
commit
cd16b1ea5e
1 changed files with 1 additions and 1 deletions
|
@ -624,7 +624,7 @@ static NSDecimalNumber *one;
|
|||
|
||||
- (BOOL) boolValue
|
||||
{
|
||||
return (BOOL)NSDecimalDouble(&data);
|
||||
return NSDecimalDouble(&data) == 0.0 ? NO : YES;
|
||||
}
|
||||
|
||||
- (double) doubleValue
|
||||
|
|
Loading…
Reference in a new issue