mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Autorelease dnum
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14281 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
183c6055cc
commit
ff84259b2a
1 changed files with 1 additions and 0 deletions
|
@ -538,6 +538,7 @@ static NSDecimalNumber *one;
|
|||
NSDecimalNumber *dnum;
|
||||
num = [self doubleValue];
|
||||
dnum = [[NSDecimalNumber alloc] initWithBytes: &num objCType: "d"];
|
||||
AUTORELEASE(dnum);
|
||||
return [dnum decimalValue];
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue