From c1429500b24af7f3e89f48637f54d4e29daec108 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 26 Apr 2021 22:21:12 +0200 Subject: [PATCH] test/test_pcm_format: work around -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 1c448294f..e28faa7cb 100644 --- a/test/test_pcm_format.cxx +++ b/test/test_pcm_format.cxx @@ -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;