We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5a6a538 + fcf205d commit 6d719beCopy full SHA for 6d719be
src/utils/decode.cc
@@ -99,8 +99,8 @@ std::string uri_decode(const std::string & sSrc) {
99
while (pSrc < SRC_LAST_DEC) {
100
if (*pSrc == '%') {
101
char dec1, dec2;
102
- if (-1 != (dec1 = string::HEX2DEC[*(pSrc + 1)])
103
- && -1 != (dec2 = string::HEX2DEC[*(pSrc + 2)])) {
+ if ((char)-1 != (dec1 = string::HEX2DEC[*(pSrc + 1)])
+ && (char)-1 != (dec2 = string::HEX2DEC[*(pSrc + 2)])) {
104
*pEnd++ = (dec1 << 4) + dec2;
105
pSrc += 3;
106
continue;
0 commit comments