Skip to content

Commit b14face

Browse files
committed
---
yaml --- r: 7419 b: refs/heads/master c: 7b1724f h: refs/heads/master i: 7417: e7bd3d8 7415: b18e2a0 v: v3
1 parent 2e3d3f3 commit b14face

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 04882d7c4359ddc83ecdc7fef83167a1b70c5ac2
2+
refs/heads/master: 7b1724fb40a1eff8f3f7960f9a52e8e04decdaaf

trunk/src/libstd/fs.rs

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

0 commit comments

Comments
 (0)