Skip to content

Commit 54eb73d

Browse files
committed
fix the boost::network::uri::encode functions - Arithmetic shift problem
1 parent f45fdb3 commit 54eb73d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boost/network/uri/encode.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void encode_char(CharT in, OutputIterator &out) {
115115
break;
116116
default:
117117
out++ = '%';
118-
out++ = hex_to_letter(in >> 4);
118+
out++ = hex_to_letter((in >> 4) & 0x0f);
119119
out++ = hex_to_letter(in & 0x0f);
120120
;
121121
}

0 commit comments

Comments
 (0)