mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
d6e3385d84
commit
bc8945c196
1 changed files with 1 additions and 0 deletions
|
@ -538,6 +538,7 @@ static NSDecimalNumber *one;
|
||||||
NSDecimalNumber *dnum;
|
NSDecimalNumber *dnum;
|
||||||
num = [self doubleValue];
|
num = [self doubleValue];
|
||||||
dnum = [[NSDecimalNumber alloc] initWithBytes: &num objCType: "d"];
|
dnum = [[NSDecimalNumber alloc] initWithBytes: &num objCType: "d"];
|
||||||
|
AUTORELEASE(dnum);
|
||||||
return [dnum decimalValue];
|
return [dnum decimalValue];
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue