diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-29 23:28:15 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-29 23:28:15 +0000 |
commit | 1372c092a07269ed674bce5c65bce207390c23c7 (patch) | |
tree | 6df84945d93a6867f22bab5b9e9026bdd317e6d4 /io.c | |
parent | 6ccc2379b2d66a2cff8e20e909b6d9d7d089d016 (diff) | |
download | ruby-1372c092a07269ed674bce5c65bce207390c23c7.tar.gz |
io.c: fix clang -Werror,-Wshorten-64-to-32 errors
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -6456,7 +6456,7 @@ linux_get_maxfd(void) err: close(fd); - return ss; + return (int)ss; } #endif @@ -10894,7 +10894,7 @@ nogvl_copy_file_range(struct copy_stream_struct *stp) if (current_offset < (off_t)0 && errno) { stp->syserr = "lseek"; stp->error_no = errno; - return current_offset; + return (int)current_offset; } copy_length = src_size - current_offset; } @@ -10955,7 +10955,7 @@ nogvl_copy_file_range(struct copy_stream_struct *stp) } stp->syserr = "copy_file_range"; stp->error_no = errno; - return ss; + return (int)ss; } return 1; } @@ -11055,7 +11055,7 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp) if (cur < (off_t)0 && errno) { stp->syserr = "lseek"; stp->error_no = errno; - return cur; + return (int)cur; } copy_length = src_size - cur; } @@ -11190,7 +11190,7 @@ nogvl_copy_stream_write(struct copy_stream_struct *stp, char *buf, size_t len) } stp->syserr = "write"; stp->error_no = errno; - return ss; + return (int)ss; } off += (int)ss; len -= (int)ss; |