forked from premiere/premiere-libtorrent
fix narrowing warning
This commit is contained in:
parent
6caddf6b8e
commit
3416da41d9
|
@ -836,7 +836,7 @@ namespace {
|
||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ret = 0;
|
std::int64_t ret = 0;
|
||||||
while (!vec.empty())
|
while (!vec.empty())
|
||||||
{
|
{
|
||||||
#ifdef IOV_MAX
|
#ifdef IOV_MAX
|
||||||
|
@ -845,7 +845,7 @@ namespace {
|
||||||
auto const nbufs = vec;
|
auto const nbufs = vec;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int tmp_ret = 0;
|
std::int64_t tmp_ret = 0;
|
||||||
tmp_ret = f(fd, nbufs.data(), int(nbufs.size()), file_offset);
|
tmp_ret = f(fd, nbufs.data(), int(nbufs.size()), file_offset);
|
||||||
if (tmp_ret < 0)
|
if (tmp_ret < 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue