fix windows

This commit is contained in:
Manish Goregaokar 2015-02-17 20:32:22 +05:30
parent a6724989ce
commit 10f51fc412

View File

@ -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) }
}
}