diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-03-25 06:13:54 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-03-25 06:13:54 +0100 |
commit | d0dad79d4ce49d8a3daf90467fdf9556749f2aeb (patch) | |
tree | 738ec48afaed58f3e053340f00cd497c4c95130d | |
parent | 8a463f664302d90fbe31800ec25afadb1cf6d7c3 (diff) | |
parent | 589c4d188a4f02a73d7f363d1b923427a3f2e973 (diff) | |
download | glutin-d0dad79d4ce49d8a3daf90467fdf9556749f2aeb.tar.gz glutin-d0dad79d4ce49d8a3daf90467fdf9556749f2aeb.zip |
Merge pull request #325 from camjackson/master
Fix compilation by replacing "range" with ".." syntax in cocoa/mod.rs
-rw-r--r-- | src/cocoa/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cocoa/mod.rs b/src/cocoa/mod.rs index 1da5ce1..5e13a77 100644 --- a/src/cocoa/mod.rs +++ b/src/cocoa/mod.rs @@ -419,7 +419,7 @@ impl Window { let count: NSUInteger = msg_send()(screens, selector("count")); let key = IdRef::new(NSString::alloc(nil).init_str("NSScreenNumber")); let mut matching_screen: Option<id> = None; - for i in range(0, count) { + for i in (0..count) { let screen = msg_send()(screens, selector("objectAtIndex:"), i as NSUInteger); let device_description = NSScreen::deviceDescription(screen); let value = msg_send()(device_description, selector("objectForKey:"), *key); |