clang-tidy: silence more minor issues found by v22

Also one found manually in lib/curl_sha512_256.c.

Follow-up to 7a08c5d820 #20762

Closes #20770
This commit is contained in:
Viktor Szakats 2026-02-28 11:29:16 +01:00
parent 006f561f6e
commit bcc8144b89
No known key found for this signature in database
5 changed files with 16 additions and 15 deletions

View file

@ -1247,7 +1247,7 @@ void Curl_ldap_version(char *buf, size_t bufsz)
unsigned int patch = (unsigned int)(api.ldapai_vendor_version % 100);
unsigned int major = (unsigned int)(api.ldapai_vendor_version / 10000);
unsigned int minor =
(((unsigned int)api.ldapai_vendor_version - major * 10000)
(((unsigned int)api.ldapai_vendor_version - (major * 10000))
- patch) / 100;
curl_msnprintf(buf, bufsz, "%s/%u.%u.%u",
api.ldapai_vendor_name, major, minor, patch);