dht log fix

This commit is contained in:
Arvid Norberg 2008-05-09 23:42:00 +00:00
parent ae11038495
commit 3fe96818d3
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ namespace libtorrent { namespace dht
char* digits = "0123456789abcdef";
for (std::string::const_iterator i = s.begin(); i != s.end(); ++i)
{
ret += digits[*i & 0xf];
ret += digits[*i >> 4];
ret += digits[((unsigned char)*i) >> 4];
ret += digits[((unsigned char)*i) & 0xf];
}
return ret;
}