diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-04 16:20:18 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-04 16:20:18 +0200 |
commit | a4c9f5bd436dae1d99845f50da55bae733129f56 (patch) | |
tree | 22a1718222ab8d76f928cfaa4740442a4d43c1fd /MLKInteger.m | |
parent | a0b4d1eafa4312b5970f7268441d848be5231e7b (diff) |
Add fixnum-aware macros LRETAIN, LRELEASE, LDESTROY, LAUTORELEASE, LASSIGN_COPY, and LASSIGN.
Diffstat (limited to 'MLKInteger.m')
-rw-r--r-- | MLKInteger.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MLKInteger.m b/MLKInteger.m index c2a3f92..2837b5b 100644 --- a/MLKInteger.m +++ b/MLKInteger.m @@ -51,21 +51,21 @@ +(MLKInteger *) integerWithMPZ:(mpz_t)mpz { - return AUTORELEASE ([[MLKInteger alloc] initWithMPZ:mpz]); + return LAUTORELEASE ([[MLKInteger alloc] initWithMPZ:mpz]); } +(MLKInteger *) integerWithString:(NSString *)string negative:(BOOL)negative base:(unsigned int)base { - return AUTORELEASE ([[MLKInteger alloc] initWithString:string + return LAUTORELEASE ([[MLKInteger alloc] initWithString:string negative:negative base:base]); } +(MLKInteger *) integerWithInt:(int)intValue { - return AUTORELEASE ([[MLKInteger alloc] initWithInt:intValue]); + return LAUTORELEASE ([[MLKInteger alloc] initWithInt:intValue]); } |