diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2016-02-23 12:39:36 -0500 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2016-02-23 12:39:36 -0500 |
commit | e2a081579316bc905905e83acb5be55fd9aab508 (patch) | |
tree | 9a83dc43fb0a0e3b9bbf51d06130a0049fd8769b /Foundation | |
parent | faf61e3369ff00128dfa087555856f8513601a56 (diff) |
add some casts to objc_msgSend
Diffstat (limited to 'Foundation')
-rw-r--r-- | Foundation/GTMSystemVersion.m | 2 |
1 files changed, 1 insertions, 1 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) { |