From d601e78e06ce35abcf806d954b0747bd3311d261 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 20 Feb 2023 12:34:09 -0700 Subject: [PATCH] signed/type mismatch fix --- libs/ardour/export_channel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/export_channel.cc b/libs/ardour/export_channel.cc index 98fd0b13c7..c0900e297f 100644 --- a/libs/ardour/export_channel.cc +++ b/libs/ardour/export_channel.cc @@ -135,7 +135,7 @@ PortExportChannel::read (Buffer const*& buf, samplecnt_t samples) const PBD::RingBuffer::rw_vector vec; (*di)->get_read_vector (&vec); - assert (vec.len[0] + vec.len[1] >= samples); + assert ((samplecnt_t) (vec.len[0] + vec.len[1]) >= samples); samplecnt_t to_write = std::min (samples, (samplecnt_t)vec.len[0]); mix_buffers_no_gain (&_buffer[0], vec.buf[0], to_write);