Skip to content

Commit 3c86c5e

Browse files
committed
vf_common.cpp: fixed readability-math-missing-parentheses clang-tidy warning
1 parent e15dcd9 commit 3c86c5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/vf_common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ namespace ValueFlow
101101
return value;
102102

103103
const MathLib::biguint unsignedMaxValue = std::numeric_limits<MathLib::biguint>::max() >> ((sizeof(unsignedMaxValue) - value_size) * 8);
104-
const MathLib::biguint signBit = 1ULL << (value_size * 8 - 1);
104+
const MathLib::biguint signBit = 1ULL << ((value_size * 8) - 1);
105105
value &= unsignedMaxValue;
106106
if (dst_sign == ValueType::Sign::SIGNED && (value & signBit))
107107
value |= ~unsignedMaxValue;

0 commit comments

Comments
 (0)