From a4c9f5bd436dae1d99845f50da55bae733129f56 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 4 Aug 2008 16:20:18 +0200 Subject: Add fixnum-aware macros LRETAIN, LRELEASE, LDESTROY, LAUTORELEASE, LASSIGN_COPY, and LASSIGN. --- MLKInteger.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MLKInteger.m') 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]); } -- cgit v1.2.3