From c6f101884b282a938c9c996ff613153520367b2a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Oct 2013 17:06:40 +0100 Subject: CrossFade: use negative value for invalid MixRamp overlap Avoid NaN to allow -ffast-math. --- test/test_mixramp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_mixramp.cxx') 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); -- cgit v1.2.3