AI review of 2026-10-14_11-03-25-ca3eda6b5fce-results.txt PR: #8940 https://github.com/cppcheck-opensource/cppcheck/pull/8940 Tested: ca3eda6b5fce76e9ecdb4954ab8e37908abba342 Merge base: b2d83612a1d235901d70a77d25c21759014e4919 Reviewed: 2026-10-14 20:31:12 UTC Model: claude-opus-5-5 (effort high) Results: 1 reviewed of 1 in the report Verdicts: 1 improvement Tokens: 1250 input, 0 cache read, 2170 cache write, 524 output The verdicts are written by AI and can be wrong. ---- 1 / 1 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/s/spout/spout_1.4.orig.tar.bz2 Result: your spout-1.4/spout.c:974:27: style: Comparing expression of type 'char' against value 128. Condition is always true. [compareValueOutOfTypeRangeError] Explanation: `*pC` is a plain `char`. The PR makes Cppcheck treat plain char as signed when the platform's default sign is signed, as on x86 Unix. On such a platform the range of `*pC` is -128..127, so `*pC < 0x80` is indeed always true, and the new warning is correct for the configured platform. This is exactly the case the PR targets (#11592). The test is not useless on unsigned-char platforms such as ARM, which makes the warning somewhat debatable for portable code. Still, it correctly reports a redundant comparison under the analyzed platform settings. It also hints at a real portability issue: on signed-char platforms, bytes >= 0x80 pass the first check only if they are >= 0x20, which they never are, so they fall to the else branch anyway.