# HG changeset patch # User Chris Cannam # Date 1536935563 -3600 # Node ID 8988b27ebf3868f7d28f51079c4c578b4f694520 # Parent a92e942158637148ccdbcdebc205bc2c7b6db885 Avoid compiler warning diff -r a92e94215863 -r 8988b27ebf38 data/fileio/WavFileWriter.cpp --- 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(m_channels, count); - breakfastquay::v_deinterleave(samples, frames.data(), m_channels, count); + float **samples = + breakfastquay::allocate_channels(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;