fix to_hex()

This commit is contained in:
Arvid Norberg 2009-04-13 02:13:17 +00:00
parent f6c97254e1
commit 45f010f5d1
1 changed files with 4 additions and 4 deletions

View File

@ -188,8 +188,8 @@ namespace libtorrent
else
{
ret += '%';
ret += hex_chars[((unsigned int)*str) >> 4];
ret += hex_chars[((unsigned int)*str) & 15];
ret += hex_chars[((unsigned char)*str) >> 4];
ret += hex_chars[((unsigned char)*str) & 15];
}
++str;
}
@ -214,8 +214,8 @@ namespace libtorrent
else
{
ret += '%';
ret += hex_chars[((unsigned int)*str) >> 4];
ret += hex_chars[((unsigned int)*str) & 15];
ret += hex_chars[((unsigned char)*str) >> 4];
ret += hex_chars[((unsigned char)*str) & 15];
}
++str;
}