From 6394e7ac02c28e72afb2f58a2641c6fd73d0b6a0 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 23 Apr 2018 13:54:22 +0800 Subject: [PATCH] Fix MSVC warning C4267 by casting to the correct type explictly --- include/libtorrent/bencode.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libtorrent/bencode.hpp b/include/libtorrent/bencode.hpp index 27c4852df..15b0915ce 100644 --- a/include/libtorrent/bencode.hpp +++ b/include/libtorrent/bencode.hpp @@ -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(e.preformatted().size()); break; case entry::undefined_t: