From a71b76bb3c6b1a08a90370ae67e8b93bc53dfd47 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 26 Apr 2021 23:25:36 +0200 Subject: [PATCH] test/test_pcm_format: another workaround for -Wdouble-promotion --- test/test_pcm_format.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_pcm_format.cxx b/test/test_pcm_format.cxx index e28faa7cb..4ecd19270 100644 --- a/test/test_pcm_format.cxx +++ b/test/test_pcm_format.cxx @@ -125,8 +125,8 @@ TEST(PcmTest, FormatFloat32) 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); } auto d = pcm_convert_to_32(buffer2,