From efd551e130cc2cc9a53532ac5364d4193be3560c Mon Sep 17 00:00:00 2001 From: chrchr-github Date: Wed, 26 Jul 2023 12:44:11 +0200 Subject: [PATCH] Rename --- lib/checktype.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/checktype.cpp b/lib/checktype.cpp index 6df72d4bb25..6f793273392 100644 --- a/lib/checktype.cpp +++ b/lib/checktype.cpp @@ -300,9 +300,9 @@ static bool checkTypeCombination(const ValueType& src, const ValueType& tgt, con { ValueType::Type::DOUBLE, ValueType::Type::LONGDOUBLE }, }; - const std::size_t sizeA = ValueFlow::getSizeOf(src, settings); - const std::size_t sizeB = ValueFlow::getSizeOf(tgt, settings); - if (!(sizeA > 0 && sizeB > 0 && sizeA < sizeB)) + const std::size_t sizeSrc = ValueFlow::getSizeOf(src, settings); + const std::size_t sizeTgt = ValueFlow::getSizeOf(tgt, settings); + if (!(sizeSrc > 0 && sizeTgt > 0 && sizeSrc < sizeTgt)) return false; return std::any_of(std::begin(typeCombinations), std::end(typeCombinations), [&](const std::pair& p) {