fixed 64-bit overflow issues

This commit is contained in:
Arvid Norberg 2008-05-29 03:18:42 +00:00
parent 0a27b0a2ce
commit 63cf889be4
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ namespace libtorrent
request += "\r\nProxy-Connection: keep-alive"; request += "\r\nProxy-Connection: keep-alive";
} }
request += "\r\nRange: bytes="; request += "\r\nRange: bytes=";
request += boost::lexical_cast<std::string>(r.piece request += boost::lexical_cast<std::string>(size_type(r.piece)
* info.piece_length() + r.start); * info.piece_length() + r.start);
request += "-"; request += "-";
request += boost::lexical_cast<std::string>(r.piece request += boost::lexical_cast<std::string>(r.piece