From d4be34ddcedc31d1f8f98d382f39bfecf927f3d4 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 12 Nov 2016 01:05:34 -0500 Subject: [PATCH] fix signed shift bug in client_test --- examples/client_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 2b528b55d..c49d7d790 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -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;