From e2a081579316bc905905e83acb5be55fd9aab508 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Tue, 23 Feb 2016 12:39:36 -0500 Subject: add some casts to objc_msgSend --- Foundation/GTMSystemVersion.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Foundation') 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) { -- cgit v1.2.3