Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SimG4Core : Fix clang warnings about absolute value use.
Replace abs/fabs with std::abs which has a signature for ints and floats. Fixed misplaced parens which result in absolute values of a bool. The absolute value of unsigned vars is meaningless. Cast to signed vars to prevent difference from wrapping to unsigned var max value.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 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