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:
rfm 2010-03-28 08:04:56 +00:00
parent a3c8df89af
commit cd16b1ea5e

View file

@ -624,7 +624,7 @@ static NSDecimalNumber *one;
- (BOOL) boolValue
{
return (BOOL)NSDecimalDouble(&data);
return NSDecimalDouble(&data) == 0.0 ? NO : YES;
}
- (double) doubleValue