ref: 548c6761a0348a83c5f6ee68aa1581c855092195
parent: 25b34fb53fe6c0f7e343af572742ce0eb2df3c7f
author: Stefan Balke <[email protected]>
date: Sun Mar 20 14:53:57 EDT 2016
Use labs instead of abs Signed-off-by: Erik de Castro Lopo <[email protected]> Closes: https://github.com/erikd/libsamplerate/pull/2
--- a/tests/termination_test.c
+++ b/tests/termination_test.c
@@ -156,7 +156,7 @@
exit (1) ;
} ;
- if (abs (src_data.input_frames_used - input_len) > 1)
+ if (labs (src_data.input_frames_used - input_len) > 1)
{ printf ("\n\nLine %d : input_frames_used should be %d, is %ld.\n\n",
__LINE__, input_len, src_data.input_frames_used) ;
printf ("\tsrc_ratio : %.4f\n", src_ratio) ;