Skip to content

Commit

Permalink
DetectorChecksum: use fabs for checking null
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer authored and MarkusFrankATcernch committed Nov 24, 2023
1 parent 04bb629 commit e47d569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DDCore/src/plugins/DetectorChecksum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace {
return v.data() != 0;
}
inline double check_null(double d) {
if ( abs(d) < 1e-12 )
if ( fabs(d) < 1e-12 )
return 0e0;
else
return d;
Expand Down

0 comments on commit e47d569

Please sign in to comment.