Skip to content

Fix #11191 FP moduloofone with pow()#4312

Merged
danmar merged 4 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix11191
Jul 28, 2022
Merged

Fix #11191 FP moduloofone with pow()#4312
danmar merged 4 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix11191

Conversation

@chrchr-github
Copy link
Copy Markdown
Collaborator

No description provided.

@chrchr-github
Copy link
Copy Markdown
Collaborator Author

Failure due to network error.

Comment thread lib/programmemory.cpp
functions["atan2"] = [](const std::vector<ValueFlow::Value>& args) {
if (args.size() != 2)
return ValueFlow::Value::unknown();
ValueFlow::Value v = args[0];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line here is to propagate the other properties of the value(ie errorPath, conditional, path, etc). For binary functions we should probably use combineValueProperties instead.

@danmar danmar merged commit c340b6a into cppcheck-opensource:main Jul 28, 2022
@chrchr-github chrchr-github deleted the chr_Fix11191 branch October 22, 2022 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants