aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMNSNumber+64Bit.m
diff options
context:
space:
mode:
Diffstat (limited to 'Foundation/GTMNSNumber+64Bit.m')
-rw-r--r--Foundation/GTMNSNumber+64Bit.m14
1 files changed, 7 insertions, 7 deletions
diff --git a/Foundation/GTMNSNumber+64Bit.m b/Foundation/GTMNSNumber+64Bit.m
index 49d5c4d..c3b1762 100644
--- a/Foundation/GTMNSNumber+64Bit.m
+++ b/Foundation/GTMNSNumber+64Bit.m
@@ -6,9 +6,9 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the License at
-//
+//
// http://www.apache.org/licenses/LICENSE-2.0
-//
+//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -20,15 +20,15 @@
@implementation NSNumber (GTM64BitAdditions)
+ (NSNumber *)gtm_numberWithCGFloat:(CGFloat)value {
- return [[[[self class] alloc] gtm_initWithCGFloat:value] autorelease];
+ return [[[self alloc] gtm_initWithCGFloat:value] autorelease];
}
+ (NSNumber *)gtm_numberWithInteger:(NSInteger)value {
- return [[[[self class] alloc] gtm_initWithInteger:value] autorelease];
+ return [[[self alloc] gtm_initWithInteger:value] autorelease];
}
+ (NSNumber *)gtm_numberWithUnsignedInteger:(NSUInteger)value {
- return [[[[self class] alloc] gtm_initWithUnsignedInteger:value] autorelease];
+ return [[[self alloc] gtm_initWithUnsignedInteger:value] autorelease];
}
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
@@ -65,7 +65,7 @@
- (id)gtm_initWithCGFloat:(CGFloat)value {
#if defined(__LP64__) && __LP64__
return [self initWithDouble:value];
-#else
+#else
return [self initWithFloat:value];
#endif // defined(__LP64__) && __LP64__
}
@@ -73,7 +73,7 @@
- (CGFloat)gtm_cgFloatValue {
#if defined(__LP64__) && __LP64__
return [self doubleValue];
-#else
+#else
return [self floatValue];
#endif // defined(__LP64__) && __LP64__
}