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:
Viktor Szakats 2026-02-23 00:59:57 +01:00
parent 29bca12978
commit 65262be0ab
No known key found for this signature in database
40 changed files with 85 additions and 80 deletions

View file

@ -618,7 +618,7 @@ UNITTEST ParameterError GetSizeParameter(const char *arg, curl_off_t *out)
if(value > ((CURL_OFF_T_MAX - add) / mul))
return PARAM_NUMBER_TOO_LARGE;
*out = value * mul + add;
*out = (value * mul) + add;
return PARAM_OK;
}