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 2e3d3f3 commit b14faceCopy full SHA for b14face
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 04882d7c4359ddc83ecdc7fef83167a1b70c5ac2
+refs/heads/master: 7b1724fb40a1eff8f3f7960f9a52e8e04decdaaf
trunk/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