aboutsummaryrefslogtreecommitdiff
path: root/Foundation
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2016-02-23 12:39:36 -0500
committerGravatar Thomas Van Lenten <thomasvl@google.com>2016-02-23 12:39:36 -0500
commite2a081579316bc905905e83acb5be55fd9aab508 (patch)
tree9a83dc43fb0a0e3b9bbf51d06130a0049fd8769b /Foundation
parentfaf61e3369ff00128dfa087555856f8513601a56 (diff)
add some casts to objc_msgSend
Diffstat (limited to 'Foundation')
-rw-r--r--Foundation/GTMSystemVersion.m2
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) {