From 63cf889be41ecd57535c49ab5b1480998dd26774 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 29 May 2008 03:18:42 +0000 Subject: [PATCH] fixed 64-bit overflow issues --- src/web_peer_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web_peer_connection.cpp b/src/web_peer_connection.cpp index d641948b0..a2dc059e2 100755 --- a/src/web_peer_connection.cpp +++ b/src/web_peer_connection.cpp @@ -229,7 +229,7 @@ namespace libtorrent request += "\r\nProxy-Connection: keep-alive"; } request += "\r\nRange: bytes="; - request += boost::lexical_cast(r.piece + request += boost::lexical_cast(size_type(r.piece) * info.piece_length() + r.start); request += "-"; request += boost::lexical_cast(r.piece