From 04882d7c4359ddc83ecdc7fef83167a1b70c5ac2 Mon Sep 17 00:00:00 2001 From: Haitao Li Date: Wed, 18 Jan 2012 19:29:37 +0800 Subject: rustc: Use integer from ctypes consistently --- src/libstd/fs.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index fe06e2a89aa..6a241bd7b1e 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -120,7 +120,9 @@ Function: path_is_dir 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) != 0i32 }); + ret str::as_buf(p, {|buf| + rustrt::rust_path_is_dir(buf) != 0 as ctypes::c_int + }); } /* @@ -129,7 +131,9 @@ Function: path_exists Indicates whether a path exists. */ fn path_exists(p: path) -> bool { - ret str::as_buf(p, {|buf| rustrt::rust_path_exists(buf) != 0i32 }); + ret str::as_buf(p, {|buf| + rustrt::rust_path_exists(buf) != 0 as ctypes::c_int + }); } /* -- cgit 1.4.1-3-g733a5