Skip to content
This repository was archived by the owner on Sep 16, 2022. It is now read-only.

Commit f12fbf6

Browse files
author
gregrobbins
committed
Fixed warning when casting Class to NSUInteger
1 parent c278933 commit f12fbf6

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Source/BaseClasses/GDataObject.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ - (BOOL)isEqual:(GDataObject *)other {
204204
// and NSObject's default hash method just returns the instance pointer.
205205
// We'll define hash here for all of our GDataObjects.
206206
- (NSUInteger)hash {
207-
return (NSUInteger) [GDataObject class];
207+
return (NSUInteger) (void *) [GDataObject class];
208208
}
209209

210210
- (id)copyWithZone:(NSZone *)zone {
@@ -2097,7 +2097,7 @@ - (BOOL)isEqual:(GDataExtensionDeclaration *)other {
20972097
}
20982098

20992099
- (NSUInteger)hash {
2100-
return (NSUInteger) [GDataExtensionDeclaration class];
2100+
return (NSUInteger) (void *) [GDataExtensionDeclaration class];
21012101
}
21022102

21032103
@end
@@ -2155,7 +2155,7 @@ - (BOOL)isEqual:(GDataAttribute *)other {
21552155
}
21562156

21572157
- (NSUInteger)hash {
2158-
return (NSUInteger) [GDataAttribute class];
2158+
return (NSUInteger) (void *) [GDataAttribute class];
21592159
}
21602160

21612161
- (void)setStringValue:(NSString *)str {

Source/XMLSupport/GDataXMLNode.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -735,11 +735,10 @@ - (BOOL)isEqual:(GDataXMLNode *)other {
735735
}
736736

737737
- (NSUInteger)hash {
738-
return (NSUInteger) [GDataXMLNode class];
738+
return (NSUInteger) (void *) [GDataXMLNode class];
739739
}
740740

741-
- (NSMethodSignature *)methodSignatureForSelector:(SEL)selector
742-
{
741+
- (NSMethodSignature *)methodSignatureForSelector:(SEL)selector {
743742
return [super methodSignatureForSelector:selector];
744743
}
745744

0 commit comments

Comments
 (0)