Skip to content

Commit

Permalink
value is unsigned int
Browse files Browse the repository at this point in the history
  • Loading branch information
schochastics committed Sep 24, 2023
1 parent 4000cbf commit af40ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/urldecode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ CharacterVector url_decode(CharacterVector url) {
output += input[i];
i++;
} else {
int value;
unsigned int value;
sscanf(input.substr(i + 1, 2).c_str(), "%x", &value);
output += static_cast<char>(value);
i += 3;
Expand Down

0 comments on commit af40ec9

Please sign in to comment.