Skip to content

Fix #11389 unnecessary trunc long cast return - part2#8243

Open
ceJce wants to merge 7 commits into
cppcheck-opensource:mainfrom
ceJce:fix11389_unnecessary_truncLongCastReturn_part2
Open

Fix #11389 unnecessary trunc long cast return - part2#8243
ceJce wants to merge 7 commits into
cppcheck-opensource:mainfrom
ceJce:fix11389_unnecessary_truncLongCastReturn_part2

do not perform shift if negative value

a8241f3
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / Cppcheck Premium succeeded Mar 2, 2026 in 3s

No new alerts in code changed by this pull request

Annotations

Check warning on line 1045 in lib/astutils.cpp

See this annotation in the file changed.

Code scanning / Cppcheck Premium

An unsigned arithmetic operation with constant operands should not wrap Warning

An unsigned arithmetic operation with constant operands should not wrap

Check warning on line 1045 in lib/astutils.cpp

See this annotation in the file changed.

Code scanning / Cppcheck Premium

An unsigned arithmetic operation with constant operands should not wrap Warning

An unsigned arithmetic operation with constant operands should not wrap