Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/unicode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ unsigned constexpr convert_hex_to_binary(const char c) noexcept {
if (c <= '9') {
return c - '0';
}
char del = c >= 'a' ? 'a' : 'A';
return 10 + (c - del);
char del = (c >= 'a' ? 'a' : 'A') - 10;
return c - del;
}

std::string percent_decode(const std::string_view input, size_t first_percent) {
Expand Down