You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mikir
changed the title
Fix for MISRA C++ 2023 rule MISRACPP2023-7_0_4-a The left-hand-side and right hand side operand of bitwise operator '^' should be unsigned
Fix MISRA C++ 2023 rule 7.0.4 "The operands of bitwise operators and shift operators shall be appropriate"
Jun 14, 2024
Zserio version and language
Zserio: latest from master
Commit date: 6 days ago (6/4/2024 7:12:28 PM)
Commit hash: b8cc6c0
Describe the bug
2 Misra warnings are getting reported for rule MISRACPP2023-7_0_4-a
1 & 2 return calcHashCodeFirstTerm(seedValue) + static_cast<uint32_t>(unsignedValue ^ (unsignedValue >> 32U));
<style> </style>Please check possibility of fixing the same.
Steps to reproduce the behavior:
SCA run using MISRA 2023 configuration.
Expected behavior
No SCA warnings for MISRA 2023 ruleset
Additional context
N.A
@Roland-Homeier @mikir FYI.
The text was updated successfully, but these errors were encountered: