shithub: libsamplerate

Download patch

ref: 6308ce1a99c2c202cddc05e309bbb3bee7be73d2
parent: 8350b763ca3b6b3e6676d9f411480b8a8575ca04
author: Erik de Castro Lopo <[email protected]>
date: Sat Jan 11 12:10:45 EST 2020

tests: Fix compiler warning

--- a/tests/snr_bw_test.c
+++ b/tests/snr_bw_test.c
@@ -250,7 +250,7 @@
 	if (verbose != 0)
 		printf ("\tOutput Len  :   %ld\n", src_data.output_frames_gen) ;
 
-	if (abs (src_data.output_frames_gen - output_len) > 4)
+	if (abs ((int) (src_data.output_frames_gen - output_len)) > 4)
 	{	printf ("\n\nLine %d : output data length should be %d.\n\n", __LINE__, output_len) ;
 		exit (1) ;
 		} ;