changeset 1526:8988b27ebf38

Avoid compiler warning
author Chris Cannam
date Fri, 14 Sep 2018 15:32:43 +0100
parents a92e94215863
children 710e6250a401 a7485c1bdba5
files data/fileio/WavFileWriter.cpp
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/fileio/WavFileWriter.cpp	Fri Sep 14 14:47:46 2018 +0100
+++ b/data/fileio/WavFileWriter.cpp	Fri Sep 14 15:32:43 2018 +0100
@@ -204,8 +204,10 @@
 WavFileWriter::putInterleavedFrames(const floatvec_t &frames)
 {
     sv_frame_t count = frames.size() / m_channels;
-    float **samples = breakfastquay::allocate_channels<float>(m_channels, count);
-    breakfastquay::v_deinterleave(samples, frames.data(), m_channels, count);
+    float **samples =
+        breakfastquay::allocate_channels<float>(m_channels, count);
+    breakfastquay::v_deinterleave
+        (samples, frames.data(), m_channels, int(count));
     bool result = writeSamples(samples, count);
     breakfastquay::deallocate_channels(samples, m_channels);
     return result;