Skip to content

Commit

Permalink
Merge branch 'master' into mingw-v7-9
Browse files Browse the repository at this point in the history
  • Loading branch information
yadij authored May 27, 2023
2 parents 1204a50 + 65d2131 commit 05ccd7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ MainSafe(int argc, char **argv)
/* BINARY DEBUGGING *
local_printfx("while() -> bufa[%" PRIuSIZE "]: %s", k, bufa);
for (i = 0; i < k; ++i)
local_printfx("%02X", bufa[i]);
local_printfx("%02X", static_cast<unsigned int>(static_cast<unsigned char>(bufa[i])));
local_printfx("\n");
* BINARY DEBUGGING */
/* Check for CRLF */
Expand Down
2 changes: 1 addition & 1 deletion src/anyp/Uri.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ AnyP::Uri::Encode(const SBuf &buf, const CharacterSet &ignore)
while (!tk.atEnd()) {
// TODO: Add Tokenizer::parseOne(void).
const auto ch = tk.remaining()[0];
output.appendf("%%%02X", static_cast<unsigned int>(ch)); // TODO: Optimize using a table
output.appendf("%%%02X", static_cast<unsigned int>(static_cast<unsigned char>(ch))); // TODO: Optimize using a table
(void)tk.skip(ch);

if (tk.prefix(goodSection, ignore))
Expand Down

0 comments on commit 05ccd7d

Please sign in to comment.