Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix warnings that implicit conversion to float changes the value.
There are three warnings about an implicit conversion from into to float causing the resulting float to be one higher that the original integer. Fix two of these by using a static cast, and the third by using MAXFLOAT instead of INT32_MAX.
- Loading branch information
1 parent
ab286ae
commit a700781
Showing
3 changed files
with
5 additions
and
3 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
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
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