fixed illegal type conversion

This commit is contained in:
Arvid Norberg 2008-12-01 20:37:06 +00:00
parent 70f4303d92
commit eacab8680e
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ namespace libtorrent
TORRENT_EXPORT std::string to_hex(std::string const& s)
{
std::string ret;
char* digits = "0123456789abcdef";
char const* digits = "0123456789abcdef";
for (std::string::const_iterator i = s.begin(); i != s.end(); ++i)
{
ret += digits[((unsigned char)*i) >> 4];