Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cppcheck (via Codacy) rightly noted that the construct ((!!w ^ !!h)) was confusing. Rearrange the code a bit, note some things must be true without testing them, and we can eliminate two variables, make the code faster than the "cute optimization" and make it FAR easier to read.
- Loading branch information
1 parent
36e9290
commit 5e0c305
Showing
1 changed file
with
9 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters