test/test_mixramp: workaround for -Wdouble-promotion

This commit is contained in:
Max Kellermann
2021-04-28 09:15:06 +02:00
parent 018858ec97
commit 8c51440057
2 changed files with 9 additions and 9 deletions

View File

@@ -154,7 +154,7 @@ TEST(PcmTest, VolumeFloat)
const auto _dest = ConstBuffer<float>::FromVoid(dest);
for (unsigned i = 0; i < N; ++i)
EXPECT_NEAR(_src[i] / 2, _dest[i], 1);
EXPECT_NEAR((double)_src[i] / 2., (double)_dest[i], 1.);
pv.Close();
}