From 1170fb1e1e0b99c9b8122fd71edb7b042500ce47 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 23 Jan 2023 14:06:51 +0100 Subject: [PATCH] output/osx: change type to std::size_t to fix -Wc++11-narrowing --- src/output/plugins/OSXOutputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/plugins/OSXOutputPlugin.cxx b/src/output/plugins/OSXOutputPlugin.cxx index a02f3e9a4..c275d17e6 100644 --- a/src/output/plugins/OSXOutputPlugin.cxx +++ b/src/output/plugins/OSXOutputPlugin.cxx @@ -627,7 +627,7 @@ osx_render(void *vdata, { OSXOutput *od = (OSXOutput *) vdata; - int count = in_number_frames * od->asbd.mBytesPerFrame; + std::size_t count = in_number_frames * od->asbd.mBytesPerFrame; buffer_list->mBuffers[0].mDataByteSize = od->ring_buffer->pop((uint8_t *)buffer_list->mBuffers[0].mData, count);