diff options
| author | Haitao Li <lihaitao@gmail.com> | 2012-01-18 23:01:51 +0800 |
|---|---|---|
| committer | Haitao Li <lihaitao@gmail.com> | 2012-01-19 02:24:22 +0800 |
| commit | 7b1724fb40a1eff8f3f7960f9a52e8e04decdaaf (patch) | |
| tree | 2fe4d835c05cf6910c0b522755ad7088dfd94495 /src/libstd | |
| parent | 04882d7c4359ddc83ecdc7fef83167a1b70c5ac2 (diff) | |
| download | rust-7b1724fb40a1eff8f3f7960f9a52e8e04decdaaf.tar.gz rust-7b1724fb40a1eff8f3f7960f9a52e8e04decdaaf.zip | |
libstd: Revert an integer type casting
Otherwise, rustctest failed by a segv fault.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/fs.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index 6a241bd7b1e..ec848eed58a 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -121,7 +121,10 @@ Indicates whether a path represents a directory. */ fn path_is_dir(p: path) -> bool { ret str::as_buf(p, {|buf| - rustrt::rust_path_is_dir(buf) != 0 as ctypes::c_int + // 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 }); } |
