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 committed Nov 24, 2023
1 parent ff4c726 commit 05cf409
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 05cf409

Please sign in to comment.