aboutsummaryrefslogtreecommitdiffstats
path: root/src/cocoa/mod.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-04-01 12:47:27 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-04-01 12:47:27 +0200
commit7a72f79d3d49daa8382211194cb35aa4bada5d17 (patch)
tree49a6f41ba121c457f4a32239909c864828e85d65 /src/cocoa/mod.rs
parentc12fa6eeefcee522dc9a2650dbc6c3a79f32f010 (diff)
parentee2a5e4a2f020e79cfa2d34bfb82fab574a61bff (diff)
downloadglutin-7a72f79d3d49daa8382211194cb35aa4bada5d17.tar.gz
glutin-7a72f79d3d49daa8382211194cb35aa4bada5d17.zip
Merge pull request #337 from mitchmindtree/master
Fixed error where rustc couldn't infer the type (OSX)
Diffstat (limited to 'src/cocoa/mod.rs')
-rw-r--r--src/cocoa/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cocoa/mod.rs b/src/cocoa/mod.rs
index a30465e..c26510c 100644
--- a/src/cocoa/mod.rs
+++ b/src/cocoa/mod.rs
@@ -391,7 +391,7 @@ impl Window {
for i in (0..count) {
let screen = msg_send![screens, objectAtIndex:i as NSUInteger];
let device_description = NSScreen::deviceDescription(screen);
- let value = msg_send![device_description, objectForKey:*key];
+ let value: id = msg_send![device_description, objectForKey:*key];
if value != nil {
let screen_number: NSUInteger = msg_send![value, unsignedIntegerValue];
if screen_number as u32 == native_id {