From e8c374113e92f6582512476700b86a68c3e1be2d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 9 Dec 2016 21:30:31 +0100 Subject: [PATCH] decoder/wavpack: make is_float const --- src/decoder/plugins/WavpackDecoderPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decoder/plugins/WavpackDecoderPlugin.cxx b/src/decoder/plugins/WavpackDecoderPlugin.cxx index 917f9dd8a..18a2c02fb 100644 --- a/src/decoder/plugins/WavpackDecoderPlugin.cxx +++ b/src/decoder/plugins/WavpackDecoderPlugin.cxx @@ -144,7 +144,7 @@ wavpack_bits_to_sample_format(bool is_float, int bytes_per_sample) static void wavpack_decode(DecoderClient &client, WavpackContext *wpc, bool can_seek) { - bool is_float = (WavpackGetMode(wpc) & MODE_FLOAT) != 0; + const bool is_float = (WavpackGetMode(wpc) & MODE_FLOAT) != 0; SampleFormat sample_format = wavpack_bits_to_sample_format(is_float, WavpackGetBytesPerSample(wpc));