aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-03-25 06:13:54 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-03-25 06:13:54 +0100
commitd0dad79d4ce49d8a3daf90467fdf9556749f2aeb (patch)
tree738ec48afaed58f3e053340f00cd497c4c95130d /src
parent8a463f664302d90fbe31800ec25afadb1cf6d7c3 (diff)
parent589c4d188a4f02a73d7f363d1b923427a3f2e973 (diff)
downloadglutin-d0dad79d4ce49d8a3daf90467fdf9556749f2aeb.tar.gz
glutin-d0dad79d4ce49d8a3daf90467fdf9556749f2aeb.zip
Merge pull request #325 from camjackson/master
Fix compilation by replacing "range" with ".." syntax in cocoa/mod.rs
Diffstat (limited to 'src')
-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 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);