diff options
| author | Michael McConville <mmcco@mykolab.com> | 2015-12-17 21:04:54 -0500 |
|---|---|---|
| committer | Michael McConville <mmcco@mykolab.com> | 2015-12-17 21:04:54 -0500 |
| commit | 5f59e1c8f9fcd31eae199514abf9d59d09f336c0 (patch) | |
| tree | a9fce949b2fe41f6b47b976fe013316f9a660af1 /src/rt | |
| parent | 9687a8a96978280824a557d32b30e619f857e6a7 (diff) | |
| download | rust-5f59e1c8f9fcd31eae199514abf9d59d09f336c0.tar.gz rust-5f59e1c8f9fcd31eae199514abf9d59d09f336c0.zip | |
Make runtime function return size_t
It returns sizeof(dirent_t), so I'm not sure why its return type is int. It's only used once, and that usage immediately casts it to usize.
Diffstat (limited to 'src/rt')
| -rw-r--r-- | src/rt/rust_builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_builtin.c b/src/rt/rust_builtin.c index af15bda4c3d..c2168d785b9 100644 --- a/src/rt/rust_builtin.c +++ b/src/rt/rust_builtin.c @@ -77,7 +77,7 @@ rust_readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result) { return readdir_r(dirp, entry, result); } -int +size_t rust_dirent_t_size() { return sizeof(struct dirent); } |
