mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 04:23:37 +00:00
libstd: Revert an integer type casting
Otherwise, rustctest failed by a segv fault.
This commit is contained in:
parent
04882d7c43
commit
7b1724fb40
|
@ -121,7 +121,10 @@ fn connect_many(paths: [path]) : vec::is_not_empty(paths) -> path {
|
|||
*/
|
||||
fn path_is_dir(p: path) -> bool {
|
||||
ret str::as_buf(p, {|buf|
|
||||
rustrt::rust_path_is_dir(buf) != 0 as ctypes::c_int
|
||||
// FIXME: instead of 0i32, ctypes::c_int
|
||||
// should be used here. but it triggers
|
||||
// a segv fault. Issue 1558
|
||||
rustrt::rust_path_is_dir(buf) != 0i32
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue