From e7483bc5bc2b98c59919b59d01042a96bf76202c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 14 Jan 2020 22:21:32 +0100 Subject: [PATCH] pcm/Dsd2Pcm: make variables more local --- src/pcm/Dsd2Pcm.cxx | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/pcm/Dsd2Pcm.cxx b/src/pcm/Dsd2Pcm.cxx index 0085139eb..fb327b299 100644 --- a/src/pcm/Dsd2Pcm.cxx +++ b/src/pcm/Dsd2Pcm.cxx @@ -151,8 +151,7 @@ static constexpr auto ctables = GenerateArray(GenerateCtable); void Dsd2Pcm::Reset() noexcept { - int i; - for (i=0; i 0) { - bite1 = *src & 0xFFu; + unsigned bite1 = *src & 0xFFu; if (lsbf) bite1 = bit_reverse(bite1); fifo[ffp] = bite1; src += src_stride; - p = fifo + ((ffp-CTABLES) & FIFOMASK); + unsigned char *p = fifo + ((ffp-CTABLES) & FIFOMASK); *p = bit_reverse(*p); - acc = 0; - for (i=0; i