Skip to content

Commit 4a37b54

Browse files
committed
valueflow.cpp: fixed ambiguous calls
1 parent 68cf05b commit 4a37b54

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/valueflow.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6375,7 +6375,7 @@ static std::vector<ValueFlow::Value> getContainerSizeFromConstructorArgs(const s
63756375
// (ptr, ptr) is empty
63766376
// TODO: Use lifetime values to check if it points to the same address
63776377
if (args[0]->exprId() == args[1]->exprId())
6378-
return {makeContainerSizeValue(std::size_t{0}, known)};
6378+
return {makeContainerSizeValue(MathLib::bigint{0}, known)};
63796379
// TODO: Insert iterator positions for pointers
63806380
if (Token::simpleMatch(args[1], "+")) {
63816381
nonneg int const eid = args[0]->exprId();
@@ -6420,7 +6420,7 @@ static std::vector<ValueFlow::Value> getInitListSize(const Token* tok,
64206420
{
64216421
std::vector<const Token*> args = getArguments(tok);
64226422
if (args.empty())
6423-
return {makeContainerSizeValue(std::size_t{0}, known)};
6423+
return {makeContainerSizeValue(MathLib::bigint{0}, known)};
64246424
bool initList = true;
64256425
// Try to disambiguate init list from constructor
64266426
if (args.size() < 4) {
@@ -6454,7 +6454,7 @@ static std::vector<ValueFlow::Value> getContainerSizeFromConstructor(const Token
64546454
{
64556455
std::vector<const Token*> args = getArguments(tok);
64566456
if (args.empty())
6457-
return {makeContainerSizeValue(std::size_t{0}, known)};
6457+
return {makeContainerSizeValue(MathLib::bigint{0}, known)};
64586458
// Init list in constructor
64596459
if (args.size() == 1 && Token::simpleMatch(args[0], "{"))
64606460
return getInitListSize(args[0], valueType, settings, known);

0 commit comments

Comments
 (0)