mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-26 07:25:48 +00:00
fix windows
This commit is contained in:
parent
a6724989ce
commit
10f51fc412
@ -18,7 +18,7 @@ use os::windows::*;
|
||||
use error::Error as StdError;
|
||||
use ffi::{OsString, OsStr, AsOsStr};
|
||||
use fmt;
|
||||
use iter::Range;
|
||||
use ops::Range;
|
||||
use libc::types::os::arch::extra::LPWCH;
|
||||
use libc::{self, c_int, c_void};
|
||||
use mem;
|
||||
@ -319,7 +319,7 @@ pub fn args() -> Args {
|
||||
let lpCmdLine = c::GetCommandLineW();
|
||||
let szArgList = c::CommandLineToArgvW(lpCmdLine, &mut nArgs);
|
||||
|
||||
Args { cur: szArgList, range: range(0, nArgs as isize) }
|
||||
Args { cur: szArgList, range: 0..(nArgs as isize) }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user