Skip to content

Commit fdf50e8

Browse files
committed
std: Use ctypes::c_int in path_is_dir
1 parent b7ec248 commit fdf50e8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/libstd/fs.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ Indicates whether a path represents a directory.
121121
*/
122122
fn path_is_dir(p: path) -> bool {
123123
ret str::as_buf(p, {|buf|
124-
// 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
124+
rustrt::rust_path_is_dir(buf) != 0 as ctypes::c_int
128125
});
129126
}
130127

0 commit comments

Comments
 (0)