From 28df544c481478ed1face61b1ec9f5ceeab3c4df Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sat, 2 Dec 2023 21:21:59 -0800 Subject: [PATCH] fix: fix uint conversion for number of samples --- include/FIFOSamplePipe.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/FIFOSamplePipe.h b/include/FIFOSamplePipe.h index 2ce5178..0664951 100644 --- a/include/FIFOSamplePipe.h +++ b/include/FIFOSamplePipe.h @@ -88,11 +88,11 @@ public: void moveSamples(FIFOSamplePipe &other ///< Other pipe instance where from the receive the data. ) { - int oNumSamples = other.numSamples(); + const uint oNumSamples = other.numSamples(); putSamples(other.ptrBegin(), oNumSamples); other.receiveSamples(oNumSamples); - }; + } /// Output samples from beginning of the sample buffer. Copies requested samples to /// output buffer and removes them from the sample buffer. If there are less than