From 1372c092a07269ed674bce5c65bce207390c23c7 Mon Sep 17 00:00:00 2001 From: normal Date: Thu, 29 Nov 2018 23:28:15 +0000 Subject: 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 --- io.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index b833bbc25e..2d69489abe 100644 --- a/io.c +++ b/io.c @@ -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; -- cgit v1.2.3