auto merge of #16336 : retep998/rust/master, r=brson

Several of the tests in `make check-fast` were failing so this fixes those tests.
This commit is contained in:
bors 2014-08-08 19:51:11 +00:00
commit 57630eb809
8 changed files with 50 additions and 33 deletions

View file

@ -197,7 +197,7 @@ mod imp {
libc::FILE_ATTRIBUTE_NORMAL,
ptr::mut_null())
};
if handle as uint == libc::INVALID_HANDLE_VALUE as uint {
if handle == libc::INVALID_HANDLE_VALUE {
fail!("create file error: {}", os::last_os_error());
}
let mut overlapped: libc::OVERLAPPED = unsafe { mem::zeroed() };