From 3abd024ecc04fbcf62c35bd44366a2845b70bb64 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 9 Jul 2016 10:31:48 -0400 Subject: [PATCH] fix warning --- src/web_peer_connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web_peer_connection.cpp b/src/web_peer_connection.cpp index e2979ee6a..03b825ebd 100644 --- a/src/web_peer_connection.cpp +++ b/src/web_peer_connection.cpp @@ -116,7 +116,7 @@ web_peer_connection::web_peer_connection(peer_connection_args const& pack if (m_path[m_path.size()-1] == '/') { std::string const& name = t->torrent_file().name(); - m_path += escape_string(name.c_str(), name.size()); + m_path += escape_string(name.c_str(), int(name.size())); } if (!m_url.empty() && m_url[m_url.size() - 1] == '/') @@ -125,7 +125,7 @@ web_peer_connection::web_peer_connection(peer_connection_args const& pack #ifdef TORRENT_WINDOWS convert_path_to_posix(tmp); #endif - tmp = escape_path(tmp.c_str(), tmp.size()); + tmp = escape_path(tmp.c_str(), int(tmp.size())); m_url += tmp; } }