diff options
author | Max Kellermann <max@musicpd.org> | 2021-04-26 23:25:36 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2021-04-26 23:25:36 +0200 |
commit | a71b76bb3c6b1a08a90370ae67e8b93bc53dfd47 (patch) | |
tree | fd3c216925e2aa056707de22a58100b3e83f0a2b /test | |
parent | c1429500b24af7f3e89f48637f54d4e29daec108 (diff) |
test/test_pcm_format: another workaround for -Wdouble-promotion
Diffstat (limited to 'test')
-rw-r--r-- | test/test_pcm_format.cxx | 4 |
1 files 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, |