Skip to content

Commit 4569295

Browse files
Update vf_analyzers.cpp
1 parent 3f15b8e commit 4569295

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/vf_analyzers.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,8 @@ struct ValueFlowAnalyzer : Analyzer {
675675
template<class F>
676676
std::vector<MathLib::bigint> evaluateInt(const Token* tok, F getProgramMemory) const
677677
{
678+
if (const ValueFlow::Value* v = tok->getKnownValue(ValueFlow::Value::ValueType::INT))
679+
return {v->intvalue};
678680
std::vector<MathLib::bigint> result;
679681
ProgramMemory pm = getProgramMemory();
680682
if (Token::Match(tok, "&&|%oror%")) {

0 commit comments

Comments
 (0)