mirror of
https://github.com/curl/curl.git
synced 2026-08-26 16:43:38 +03:00
clang-tidy: enable readability-math-missing-parentheses, adjust code
No functional changes. Also: - md4, md5: drop redundant parentheses from macro values. Closes #20691
This commit is contained in:
parent
29bca12978
commit
65262be0ab
40 changed files with 85 additions and 80 deletions
|
|
@ -184,7 +184,7 @@ static char *c_escape(const char *str, curl_off_t len)
|
|||
CURLcode result;
|
||||
struct dynbuf escaped;
|
||||
|
||||
curlx_dyn_init(&escaped, 4 * MAX_STRING_LENGTH_OUTPUT + 3);
|
||||
curlx_dyn_init(&escaped, (4 * MAX_STRING_LENGTH_OUTPUT) + 3);
|
||||
|
||||
if(len == ZERO_TERMINATED)
|
||||
len = strlen(str);
|
||||
|
|
@ -211,7 +211,7 @@ static char *c_escape(const char *str, curl_off_t len)
|
|||
|
||||
if(!result) {
|
||||
if(p && *p)
|
||||
result = curlx_dyn_addn(&escaped, to + 2 * (p - from), 2);
|
||||
result = curlx_dyn_addn(&escaped, to + (2 * (p - from)), 2);
|
||||
else {
|
||||
result = curlx_dyn_addf(&escaped,
|
||||
/* Octal escape to avoid >2 digit hex. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue