std: Use ctypes::c_int in path_is_dir

This commit is contained in:
Brian Anderson 2012-02-05 16:21:52 -08:00
parent b7ec2488ff
commit fdf50e84b8

View File

@ -121,10 +121,7 @@ Indicates whether a path represents a directory.
*/
fn path_is_dir(p: path) -> bool {
ret str::as_buf(p, {|buf|
// 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
rustrt::rust_path_is_dir(buf) != 0 as ctypes::c_int
});
}