Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STYLE: Remove
diff
variables from ConvertPixelBuffer (warning C26451)
These four local `diff` variables appeared unnecessary, after commit f8e3d3b ("ERR: ++ replaced with +1, +2, etc. to avoid possible compiler problems.", Bill Lorensen, 2002-09-03). Removing them fixed a few Visual Studio 2019 16.11.21 Code Analysis warnings, saying: > warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and > then casting the result to a 8 byte value. Cast the value to the wider type > before calling operator '+' to avoid overflow (io.2).
- Loading branch information
Showing
1 changed file
with
4 additions
and
12 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