fix narrowing warning

This commit is contained in:
arvidn 2018-08-03 12:51:45 +02:00 committed by Arvid Norberg
parent 6caddf6b8e
commit 3416da41d9
1 changed files with 2 additions and 2 deletions

View File

@ -836,7 +836,7 @@ namespace {
++it;
}
int ret = 0;
std::int64_t ret = 0;
while (!vec.empty())
{
#ifdef IOV_MAX
@ -845,7 +845,7 @@ namespace {
auto const nbufs = vec;
#endif
int tmp_ret = 0;
std::int64_t tmp_ret = 0;
tmp_ret = f(fd, nbufs.data(), int(nbufs.size()), file_offset);
if (tmp_ret < 0)
{