Skip to content

Fix FP when using - as a binary operator#1201

Merged
danmar merged 1 commit intodanmar:masterfrom
pfultz2:unary-opposite-expression
May 4, 2018
Merged

Fix FP when using - as a binary operator#1201
danmar merged 1 commit intodanmar:masterfrom
pfultz2:unary-opposite-expression

Conversation

@pfultz2
Copy link
Copy Markdown
Contributor

@pfultz2 pfultz2 commented May 3, 2018

This fixes issue 8537:

bool f(int i){ return !((i - 1) & i); }

@danmar danmar merged commit cac68c6 into danmar:master May 4, 2018
@pfultz2 pfultz2 deleted the unary-opposite-expression branch May 19, 2019 05:24
chrchr-github added a commit to chrchr-github/cppcheck that referenced this pull request Sep 28, 2022
orbitcowboy pushed a commit that referenced this pull request Sep 29, 2022
* Add test for #6541, avoid duplicate warning

* Add test for #5475

* Fix test

* Merge

* Add test for #8666

* Fix #11239 checkLibraryCheckType with asm goto() (invalid varid)

* Format

* Add tests for #1201, #2654

* Fix test

* Add test for #6379
orbitcowboy pushed a commit that referenced this pull request Sep 29, 2022
* Add test for #6541, avoid duplicate warning

* Add test for #5475

* Fix test

* Merge

* Add test for #8666

* Fix #11239 checkLibraryCheckType with asm goto() (invalid varid)

* Format

* Add tests for #1201, #2654

* Fix test

* Add test for #6379

* Add tests for #1770, #10130
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.

2 participants