Skip to content

Commit f7da59e

Browse files
authored
valueflow.cpp: fixed "Improper use of negative value" Coverity warning (#7652)
1 parent 9f3f41d commit f7da59e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/valueflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ static size_t getAlignOf(const ValueType& vt, const Settings& settings, ValueFlo
486486
return align == 0 ? 0 : bitCeil(align);
487487
}
488488
if (vt.type == ValueType::Type::RECORD && vt.typeScope) {
489-
auto accHelper = [&](size_t max, const ValueType& vt2, size_t /*dim*/, size_t /*bits*/) {
489+
auto accHelper = [&](size_t max, const ValueType& vt2, size_t /*dim*/, MathLib::bigint /*bits*/) {
490490
size_t a = getAlignOf(vt2, settings, accuracy, ++maxRecursion);
491491
return std::max(max, a);
492492
};

0 commit comments

Comments
 (0)