about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
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
+    });
 }
 
 /*