diff options
Diffstat (limited to 'runtime/POSIX/fd_32.c')
-rw-r--r-- | runtime/POSIX/fd_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/POSIX/fd_32.c b/runtime/POSIX/fd_32.c index 4eea1805..338d9ba2 100644 --- a/runtime/POSIX/fd_32.c +++ b/runtime/POSIX/fd_32.c @@ -142,8 +142,8 @@ ssize_t getdents(int fd, struct dirent *dirp, size_t nbytes) { struct dirent64 *end = (struct dirent64*) ((char*) dp64 + res); while (dp64 < end) { struct dirent *dp = (struct dirent *) dp64; - unsigned name_len = (dp64->d_reclen - - (unsigned) &((struct dirent64*) 0)->d_name); + size_t name_len = (dp64->d_reclen - + (size_t) &((struct dirent64*) 0)->d_name); dp->d_ino = dp64->d_ino; dp->d_off = dp64->d_off; dp->d_reclen = dp64->d_reclen; |