about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorHaitao Li <lihaitao@gmail.com>2012-01-18 19:29:37 +0800
committerHaitao Li <lihaitao@gmail.com>2012-01-19 02:10:36 +0800
commit04882d7c4359ddc83ecdc7fef83167a1b70c5ac2 (patch)
treec533a3e1bb7bc729cf2cfd7d2e3ca772830f8a2d /src/libstd
parentdde41869ce2ef1d66e753fc8b4efc7d917c77875 (diff)
downloadrust-04882d7c4359ddc83ecdc7fef83167a1b70c5ac2.tar.gz
rust-04882d7c4359ddc83ecdc7fef83167a1b70c5ac2.zip
rustc: Use integer from ctypes consistently
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/fs.rs8
1 files changed, 6 insertions, 2 deletions
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
+    });
 }
 
 /*