test/test_pcm_format: work around -Wdouble-promotion

This commit is contained in:
Max Kellermann 2021-04-26 22:21:12 +02:00
parent 0f02bbc2fe
commit c1429500b2

View File

@ -79,8 +79,8 @@ TEST(PcmTest, FormatFloat16)
EXPECT_EQ(N, f.size);
for (size_t i = 0; i != f.size; ++i) {
EXPECT_GE(f[i], -1.);
EXPECT_LE(f[i], 1.);
EXPECT_GE(f[i], -1.f);
EXPECT_LE(f[i], 1.f);
}
PcmDither dither;