forked from premiere/premiere-libtorrent
fix signed shift bug in client_test
This commit is contained in:
parent
ab6940d560
commit
d4be34ddce
|
@ -694,8 +694,8 @@ std::string path_to_url(std::string f)
|
|||
else
|
||||
{
|
||||
ret.push_back('%');
|
||||
ret.push_back(hex_chars[f[i] >> 4]);
|
||||
ret.push_back(hex_chars[f[i] & 0xf]);
|
||||
ret.push_back(hex_chars[std::uint8_t(f[i]) >> 4]);
|
||||
ret.push_back(hex_chars[std::uint8_t(f[i]) & 0xf]);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue