Fix MSVC warning C4267 by casting to the correct type explictly

This commit is contained in:
Chocobo1 2018-04-23 13:54:22 +08:00 committed by Arvid Norberg
parent 21d8e9e26b
commit 6394e7ac02
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ namespace libtorrent
break;
case entry::preformatted_t:
std::copy(e.preformatted().begin(), e.preformatted().end(), out);
ret += e.preformatted().size();
ret += static_cast<int>(e.preformatted().size());
break;
case entry::undefined_t: