aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/bsinc_tables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/bsinc_tables.cpp b/common/bsinc_tables.cpp
index 99033a0b..46919682 100644
--- a/common/bsinc_tables.cpp
+++ b/common/bsinc_tables.cpp
@@ -85,7 +85,7 @@ constexpr std::enable_if_t<std::is_floating_point<T>::value,T> sin(T x)
*/
constexpr double Sinc(const double x)
{
- if(std::abs(x) < 1e-15)
+ if(!(x > 1e-15 || x < -1e-15))
return 1.0;
return sin(al::MathDefs<double>::Pi()*x) / (al::MathDefs<double>::Pi()*x);
}