From 9471eaaa583215a5100b715624dc3a75d0547a81 Mon Sep 17 00:00:00 2001 From: firewave Date: Mon, 7 Jul 2025 14:15:15 +0200 Subject: [PATCH] valueflow.cpp: fixed "Improper use of negative value" Coverity warning --- lib/valueflow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 0de180e9d3f..9a1e81e9d81 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -486,7 +486,7 @@ static size_t getAlignOf(const ValueType& vt, const Settings& settings, ValueFlo return align == 0 ? 0 : bitCeil(align); } if (vt.type == ValueType::Type::RECORD && vt.typeScope) { - auto accHelper = [&](size_t max, const ValueType& vt2, size_t /*dim*/, size_t /*bits*/) { + auto accHelper = [&](size_t max, const ValueType& vt2, size_t /*dim*/, MathLib::bigint /*bits*/) { size_t a = getAlignOf(vt2, settings, accuracy, ++maxRecursion); return std::max(max, a); };