From be030f500ec94b38d12e359f1a2455017542cc12 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Fri, 11 Aug 2017 12:14:47 +0200 Subject: [PATCH] fix comparison of integers of different signs --- example/sco_demo_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/sco_demo_util.c b/example/sco_demo_util.c index 711b2de7d..9bf7de4af 100644 --- a/example/sco_demo_util.c +++ b/example/sco_demo_util.c @@ -212,7 +212,7 @@ static int portaudio_callback( const void *inputBuffer, void *outputBuffer, // config based on codec int bytes_to_copy; - int prebuffer_bytes; + uint32_t prebuffer_bytes; switch (negotiated_codec){ case HFP_CODEC_MSBC: bytes_to_copy = framesPerBuffer * MSBC_BYTES_PER_FRAME; @@ -256,7 +256,6 @@ static int portaudio_callback( const void *inputBuffer, void *outputBuffer, btstack_ring_buffer_write(&pa_input_ring_buffer, (uint8_t *)inputBuffer, framesPerBuffer * 2); pa_input_counter += framesPerBuffer * 2; #endif - return 0; }