From 79c585bf0370c58594087c421f6f7a8d64066cbc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 14 Jan 2020 23:28:34 +0100 Subject: [PATCH] pcm/PcmDsd: use size_t --- src/pcm/PcmDsd.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pcm/PcmDsd.cxx b/src/pcm/PcmDsd.cxx index 7348c5f61..5dabdf7f6 100644 --- a/src/pcm/PcmDsd.cxx +++ b/src/pcm/PcmDsd.cxx @@ -38,8 +38,8 @@ PcmDsd::ToFloat(unsigned channels, ConstBuffer src) noexcept assert(src.size % channels == 0); assert(channels <= dsd2pcm.max_size()); - const unsigned num_samples = src.size; - const unsigned num_frames = src.size / channels; + const size_t num_samples = src.size; + const size_t num_frames = src.size / channels; float *dest = buffer.GetT(num_samples);