From eee790d0c94b28c6a744a2a650f9e439675cf546 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 7 May 2016 01:34:54 -0400 Subject: [PATCH] fix warning --- 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 f1bd1233f..c0a4db76f 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 += int(e.preformatted().size()); break; case entry::undefined_t: // trying to encode a structure with uninitialized values!