mirror of
https://github.com/curl/curl.git
synced 2026-08-25 16:03:40 +03:00
src: tidy up types, add necessary casts
Cherry-picked from #13489 Closes #13614
This commit is contained in:
parent
d0728c9109
commit
1a89538347
14 changed files with 30 additions and 32 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue