diff options
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 3e89d12e438..34624f1a817 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -444,9 +444,9 @@ rust_dirent_filename(rust_task *task, dirent* ent) { #endif extern "C" CDECL int -rust_file_is_dir(rust_task *task, rust_str *path) { +rust_file_is_dir(rust_task *task, char *path) { struct stat buf; - if (stat((char*)path->data, &buf)) { + if (stat(path, &buf)) { return 0; } return S_ISDIR(buf.st_mode); |
