зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
6ccc2379b2
Коммит
1372c092a0
10
io.c
10
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче