summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-29 23:28:15 (GMT)
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-29 23:28:15 (GMT)
commit1372c092a07269ed674bce5c65bce207390c23c7 (patch)
tree6df84945d93a6867f22bab5b9e9026bdd317e6d4 /io.c
parent6ccc2379b2d66a2cff8e20e909b6d9d7d089d016 (diff)
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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/io.c b/io.c
index b833bbc..2d69489 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;