We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04882d7 commit 7b1724fCopy full SHA for 7b1724f
src/libstd/fs.rs
@@ -121,7 +121,10 @@ Indicates whether a path represents a directory.
121
*/
122
fn path_is_dir(p: path) -> bool {
123
ret str::as_buf(p, {|buf|
124
- rustrt::rust_path_is_dir(buf) != 0 as ctypes::c_int
+ // FIXME: instead of 0i32, ctypes::c_int
125
+ // should be used here. but it triggers
126
+ // a segv fault. Issue 1558
127
+ rustrt::rust_path_is_dir(buf) != 0i32
128
});
129
}
130
0 commit comments