Skip to content

Commit

Permalink
change isinf+isnan to isfinite
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelab committed Feb 4, 2021
1 parent 64b24b7 commit 290541e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/EMPairProduction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void EMPairProduction::performInteraction(Candidate *candidate) const {
double f = Ep / E;

// for some backgrounds Ee=nan due to precision limitations.
if (isnan(Ee) || isinf(Ee) || isnan(Ep) || isinf(Ep))
if (not std::isfinite(Ee) || not std::isfinite(Ep))
return;

// sample random position along current step
Expand Down

0 comments on commit 290541e

Please sign in to comment.