Skip to content

Commit

Permalink
assert
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jan 26, 2025
1 parent 2b83e79 commit 63380d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/programmemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1386,15 +1386,18 @@ namespace {
case ValueFlow::Value::ValueType::ITERATOR_START:
case ValueFlow::Value::ValueType::ITERATOR_END:
case ValueFlow::Value::ValueType::CONTAINER_SIZE: {
assert(!value);
value = &val;
break;
}
default:
break;
}
if (value)
return *value;
//if (value)
// return *value;
}
if (value)
return *value;
if (expr->isNumber()) {
if (MathLib::isFloat(expr->str()))
return unknown();
Expand Down

0 comments on commit 63380d3

Please sign in to comment.