ref: a12aad2eb0f7322e89058170ae4a592b46c91b24
parent: 548c6761a0348a83c5f6ee68aa1581c855092195
author: Erik de Castro Lopo <[email protected]>
date: Wed Aug 31 17:32:37 EDT 2016
tests/snr_bw_test.c: Fix compiler warning with gcc 6.1 Warning was: snr_bw_test.c:226:23: warning: left shift of negative value output_len &= ((-1) << 4) ; ^~
--- a/tests/snr_bw_test.c
+++ b/tests/snr_bw_test.c
@@ -223,7 +223,7 @@
else
{ input_len = BUFFER_LEN ;
output_len = (int) ceil (BUFFER_LEN * test_data->src_ratio) ;
- output_len &= ((-1) << 4) ;
+ output_len &= ((~0u) << 4) ;
if (output_len > MAX_SPEC_LEN)
output_len = MAX_SPEC_LEN ;
input_len = (int) ceil (output_len / test_data->src_ratio) ;