diff options
author | RJ Ryan <rryan@mixxx.org> | 2014-04-24 18:35:40 -0400 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2014-04-25 10:38:06 -0400 |
commit | 790611691a6b7669b0382beb848f87209437ab49 (patch) | |
tree | 10a2aa9d26f42cb19f253e2f217809efb302d821 /src/util/math.h | |
parent | 10b2d1ce12f1d004be57d09fa76527045c09beb1 (diff) |
Fix narrowing-conversion issues by using std::fabs instead of fabs.
Diffstat (limited to 'src/util/math.h')
-rw-r--r-- | src/util/math.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/math.h b/src/util/math.h index bb8c17ff08..b6894633fa 100644 --- a/src/util/math.h +++ b/src/util/math.h @@ -7,6 +7,10 @@ #include <cmath> #include <algorithm> +// If we don't do this then we get the C90 fabs from the global namespace which +// is only defined for double. +using std::fabs; + #define math_max std::max #define math_min std::min #define math_max3(a, b, c) math_max(math_max((a), (b)), (c)) |