Skip to content

Commit 8e3c210

Browse files
committed
Use unsigned int for the decoder padding size type
1 parent 7d90f93 commit 8e3c210

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

core/uhjfilter.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct UhjEncoder final : public UhjEncoderBase {
102102
struct UhjEncoderIIR final : public UhjEncoderBase {
103103
struct Tag { using encoder_t = UhjEncoderIIR; };
104104

105-
static constexpr std::size_t sFilterDelay{1};
105+
static constexpr std::size_t sFilterDelay{1_uz};
106106

107107
static consteval auto TypeName() noexcept -> std::string_view
108108
{ return "IIR"; }
@@ -168,7 +168,7 @@ struct UhjDecoder final : public DecoderBase {
168168
struct Tag { using decoder_t = UhjDecoder<N>; };
169169

170170
/* The number of extra sample frames needed for input. */
171-
static constexpr std::size_t sInputPadding{N/2};
171+
static constexpr unsigned int sInputPadding{N/2u};
172172

173173
alignas(16) std::array<float,BufferLineSize+sInputPadding> mS{};
174174
alignas(16) std::array<float,BufferLineSize+sInputPadding> mD{};
@@ -177,7 +177,7 @@ struct UhjDecoder final : public DecoderBase {
177177
alignas(16) std::array<float,sInputPadding-1> mDTHistory{};
178178
alignas(16) std::array<float,sInputPadding-1> mSHistory{};
179179

180-
alignas(16) std::array<float,BufferLineSize + sInputPadding*2> mTemp{};
180+
alignas(16) std::array<float,BufferLineSize + sInputPadding*2_uz> mTemp{};
181181

182182
/**
183183
* Decodes a 3- or 4-channel UHJ signal into a B-Format signal with FuMa
@@ -199,7 +199,7 @@ struct UhjDecoderIIR final : public DecoderBase {
199199
* by one sample. The first filtered output sample is cut to align it with
200200
* the first non-filtered sample, similar to the FIR filters.
201201
*/
202-
static constexpr std::size_t sInputPadding{1};
202+
static constexpr unsigned int sInputPadding{1u};
203203

204204
bool mFirstRun{true};
205205
alignas(16) std::array<float,BufferLineSize+sInputPadding> mS{};
@@ -219,7 +219,7 @@ template<std::size_t N>
219219
struct UhjStereoDecoder final : public DecoderBase {
220220
struct Tag { using decoder_t = UhjStereoDecoder<N>; };
221221

222-
static constexpr std::size_t sInputPadding{N/2};
222+
static constexpr unsigned int sInputPadding{N/2u};
223223

224224
float mCurrentWidth{-1.0f};
225225

@@ -229,7 +229,7 @@ struct UhjStereoDecoder final : public DecoderBase {
229229
alignas(16) std::array<float,sInputPadding-1> mDTHistory{};
230230
alignas(16) std::array<float,sInputPadding-1> mSHistory{};
231231

232-
alignas(16) std::array<float,BufferLineSize + sInputPadding*2> mTemp{};
232+
alignas(16) std::array<float,BufferLineSize + sInputPadding*2_uz> mTemp{};
233233

234234
/**
235235
* Applies Super Stereo processing on a stereo signal to create a B-Format
@@ -243,7 +243,7 @@ struct UhjStereoDecoder final : public DecoderBase {
243243
struct UhjStereoDecoderIIR final : public DecoderBase {
244244
struct Tag { using decoder_t = UhjStereoDecoderIIR; };
245245

246-
static constexpr std::size_t sInputPadding{1};
246+
static constexpr unsigned int sInputPadding{1u};
247247

248248
bool mFirstRun{true};
249249
float mCurrentWidth{-1.0f};

0 commit comments

Comments
 (0)