Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jul 26, 2023
1 parent e61fc1c commit efd551e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/checktype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ValueType::Type, ValueType::Type>& p) {
Expand Down

0 comments on commit efd551e

Please sign in to comment.