src: tidy up types, add necessary casts

Cherry-picked from #13489
Closes #13614
This commit is contained in:
Viktor Szakats 2024-05-13 12:17:33 +02:00
parent d0728c9109
commit 1a89538347
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
14 changed files with 30 additions and 32 deletions

View file

@ -72,7 +72,7 @@ int jsonquoted(const char *in, size_t len,
if(*i < 32)
result = curlx_dyn_addf(out, "\\u%04x", *i);
else {
char o = *i;
char o = (char)*i;
if(lowercase && (o >= 'A' && o <= 'Z'))
/* do not use tolower() since that's locale specific */
o |= ('a' - 'A');