aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-30 17:06:40 +0100
committerMax Kellermann <max@duempel.org>2013-10-30 17:20:12 +0100
commitc6f101884b282a938c9c996ff613153520367b2a (patch)
tree63e7d311c500281c7a451f86f0cc433d9233e24a /test
parentc0c0526fc8076cff6e6dfd13b3e950898b405286 (diff)
downloadmpd-c6f101884b282a938c9c996ff613153520367b2a.tar.gz
mpd-c6f101884b282a938c9c996ff613153520367b2a.tar.xz
mpd-c6f101884b282a938c9c996ff613153520367b2a.zip
CrossFade: use negative value for invalid MixRamp overlap
Avoid NaN to allow -ffast-math.
Diffstat (limited to 'test')
-rw-r--r--test/test_mixramp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_mixramp.cxx b/test/test_mixramp.cxx
index 74d49dd87..0dc67db77 100644
--- a/test/test_mixramp.cxx
+++ b/test/test_mixramp.cxx
@@ -43,7 +43,7 @@ public:
free(foo);
foo = strdup(input);
- CPPUNIT_ASSERT(std::isnan(mixramp_interpolate(foo, 6.1)));
+ CPPUNIT_ASSERT(mixramp_interpolate(foo, 6.1) < 0);
free(foo);
foo = strdup(input);