test/test_pcm_format: another workaround for -Wdouble-promotion

This commit is contained in:
Max Kellermann 2021-04-26 23:25:36 +02:00
parent c1429500b2
commit a71b76bb3c
1 changed files with 2 additions and 2 deletions

View File

@ -125,8 +125,8 @@ TEST(PcmTest, FormatFloat32)
EXPECT_EQ(N, f.size); EXPECT_EQ(N, f.size);
for (size_t i = 0; i != f.size; ++i) { for (size_t i = 0; i != f.size; ++i) {
EXPECT_GE(f[i], -1.); EXPECT_GE(f[i], -1.f);
EXPECT_LE(f[i], 1.); EXPECT_LE(f[i], 1.f);
} }
auto d = pcm_convert_to_32(buffer2, auto d = pcm_convert_to_32(buffer2,