fix signed shift bug in client_test

This commit is contained in:
arvidn 2016-11-12 01:05:34 -05:00
parent ab6940d560
commit d4be34ddce
1 changed files with 2 additions and 2 deletions

View File

@ -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;