diff options
author | Cam Jackson <camjackson89@gmail.com> | 2015-03-25 15:54:57 +1100 |
---|---|---|
committer | Cam Jackson <camjackson89@gmail.com> | 2015-03-25 15:54:57 +1100 |
commit | 589c4d188a4f02a73d7f363d1b923427a3f2e973 (patch) | |
tree | 738ec48afaed58f3e053340f00cd497c4c95130d /src/cocoa | |
parent | 8a463f664302d90fbe31800ec25afadb1cf6d7c3 (diff) | |
download | glutin-589c4d188a4f02a73d7f363d1b923427a3f2e973.tar.gz glutin-589c4d188a4f02a73d7f363d1b923427a3f2e973.zip |
Fix compilation by replacing "range" with ".." syntax
Diffstat (limited to 'src/cocoa')
-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); |