Skip to content

Commit d6b62da

Browse files
Update programmemory.cpp
1 parent a5a7dd7 commit d6b62da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/programmemory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,7 @@ void execute(const Token* expr,
19131913
const Settings& settings)
19141914
{
19151915
ValueFlow::Value v = execute(expr, programMemory, settings);
1916-
if (!v.isIntValue() || v.isImpossible()) {
1916+
if ((!v.isIntValue() && !v.isFloatValue()) || v.isImpossible()) {
19171917
if (error)
19181918
*error = true;
19191919
} else if (result)

0 commit comments

Comments
 (0)