Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimG4Core : Fix clang warnings about absolute value use. #16956

Merged
merged 1 commit into from Dec 10, 2016
Merged

SimG4Core : Fix clang warnings about absolute value use. #16956

merged 1 commit into from Dec 10, 2016

Commits on Dec 9, 2016

  1. 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.
    gartung committed Dec 9, 2016
    Copy the full SHA
    ab6e314 View commit details
    Browse the repository at this point in the history