Skip to content

Commit

Permalink
[misc] use std::numeric_limits::epsilon
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang-ray committed Nov 19, 2018
1 parent 753e85b commit acb6bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/sanity_check/audio/Entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Case_noDevice : public Case {
}
auto sum = std::accumulate(theResult.begin(), theResult.end(), 0.0);
LOGD << filePaths[i] << "\t feature = " << sum;
if (std::fabs(sum) < std::fabs(std::numeric_limits<double>::lowest())) {
if (std::fabs(sum) < std::fabs(std::numeric_limits<double>::epsilon())) {
LOGE << filePaths[i] << "\t is too low";
return -1;
}
Expand Down

0 comments on commit acb6bdb

Please sign in to comment.