diff options
-rw-r--r-- | Foundation/GTMSystemVersion.m | 2 | ||||
-rw-r--r-- | UnitTesting/GTMSenTestCase.m | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Foundation/GTMSystemVersion.m b/Foundation/GTMSystemVersion.m index b234c2c..f3a8559 100644 --- a/Foundation/GTMSystemVersion.m +++ b/Foundation/GTMSystemVersion.m @@ -85,7 +85,7 @@ static NSString *const kSystemVersionPlistPath = @"/System/Library/CoreServices/ // version number instead of an iOS version number. Class uideviceClass = NSClassFromString(@"UIDevice"); if (uideviceClass) { - id currentDevice = objc_msgSend(uideviceClass, @selector(currentDevice)); + id currentDevice = ((id (*)(id, SEL))objc_msgSend)(uideviceClass, @selector(currentDevice)); version = [currentDevice performSelector:@selector(systemVersion)]; } if (!version) { diff --git a/UnitTesting/GTMSenTestCase.m b/UnitTesting/GTMSenTestCase.m index e2f2ceb..ecab057 100644 --- a/UnitTesting/GTMSenTestCase.m +++ b/UnitTesting/GTMSenTestCase.m @@ -298,7 +298,7 @@ NSString *const SenTestLineNumberKey = @"SenTestLineNumberKey"; // It turns out that on iOS4 (and 3.2) exceptions thrown inside an // [invocation invoke] on the simulator cannot be caught. // http://openradar.appspot.com/8081169 - objc_msgSend(self, [invocation selector]); + ((void (*)(id, SEL))objc_msgSend)(self, [invocation selector]); #else [invocation invokeWithTarget:self]; #endif |