diff options
author | Max Kellermann <max@musicpd.org> | 2020-02-01 13:55:08 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-02-01 14:02:43 +0100 |
commit | 72ec641f0d5a33de882a05a53e2f3a3b74226eb3 (patch) | |
tree | d52d290cab7f7cbec7e67ebb0f7998962cdae534 /test/test_pcm_format.cxx | |
parent | 4f22f4d357c99ba4163a496882f813138db3c39b (diff) |
*: use `auto`
Diffstat (limited to 'test/test_pcm_format.cxx')
-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 5ff65dc6a..8d27a4b20 100644 --- a/test/test_pcm_format.cxx +++ b/test/test_pcm_format.cxx @@ -94,7 +94,7 @@ TEST(PcmTest, FormatFloat16) EXPECT_EQ(src[i], d[i]); /* check if clamping works */ - float *writable = const_cast<float *>(f.data); + auto *writable = const_cast<float *>(f.data); *writable++ = 1.01; *writable++ = 10; *writable++ = -1.01; @@ -140,7 +140,7 @@ TEST(PcmTest, FormatFloat32) EXPECT_NEAR(src[i], d[i], error); /* check if clamping works */ - float *writable = const_cast<float *>(f.data); + auto *writable = const_cast<float *>(f.data); *writable++ = 1.01; *writable++ = 10; *writable++ = -1.01; |