https://bugs.kde.org/show_bug.cgi?id=517596
Bug ID: 517596
Summary: VEX/priv/guest_ppc_toIR.c: Two possible cut'n'paste
errors
Classification: Developer tools
Product: valgrind
Version First 3.27 GIT
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: vex
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Static analyser cppcheck says:
VEX/priv/guest_ppc_toIR.c:31517:76: style: Same expression 'immediate16_hi<<32'
found multiple times in chain of '|' operators. [duplicateExpression]
Source code is
immediate64_hi = ((immediate16_hi << 32) | (immediate16_hi << 56) |
(immediate16_hi << 48) | (immediate16_hi << 40) |
(immediate16_hi << 32) | (immediate16_hi << 16) |
(immediate16_hi << 8) | immediate16_hi);
Might be right, but looks odd. Same in another place
VEX/priv/guest_ppc_toIR.c:31522:76: style: Same expression 'immediate16_lo<<32'
found multiple times in chain of '|' operators. [duplicateExpression]
--
You are receiving this mail because:
You are watching all bug changes.