From 3dbd1fd4a86f85f90dade18b6ad3567f2d0da49d Mon Sep 17 00:00:00 2001 From: Weiyi Wang Date: Sun, 14 Jul 2019 14:06:46 -0400 Subject: [PATCH] audio_core/cubeb: silent signed/unsigned comparison warning --- src/audio_core/cubeb_input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio_core/cubeb_input.cpp b/src/audio_core/cubeb_input.cpp index 9d3bf2fe84..13d8ce3991 100644 --- a/src/audio_core/cubeb_input.cpp +++ b/src/audio_core/cubeb_input.cpp @@ -119,7 +119,7 @@ long CubebInput::Impl::DataCallback(cubeb_stream* stream, void* user_data, const samples.reserve(num_frames * impl->sample_size_in_bytes); if (impl->sample_size_in_bytes == 1) { // If the sample format is 8bit, then resample back to 8bit before passing back to core - for (std::size_t i; i < num_frames; i++) { + for (std::size_t i = 0; i < static_cast(num_frames); i++) { s16 data; std::memcpy(&data, static_cast(input_buffer) + i * 2, 2); samples.push_back(resample_s16_s8(data));