shithub: libsamplerate

Download patch

ref: 0ebd50533da3f76ccace7bce0f66faff34aeb774
parent: 2931dcd01a59bce2fbba5ef5932cc913be5f65db
author: Erik de Castro Lopo <erikd@mega-nerd.com>
date: Mon Jan 12 15:28:30 EST 2009

tests/termination_test.c : Fix termination test error on x86_64. Error probably due to difference in rounding.

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-12  Erik de Castro Lopo  <erikd AT mega-nerd DOT com>
+
+    * tests/termination_test.c
+    Fix termination test error on x86_64. Error probably due to difference in
+    rounding.
+
 2009-01-11  Erik de Castro Lopo  <erikd AT mega-nerd DOT com>
 
     * doc/win32.html
--- a/tests/termination_test.c
+++ b/tests/termination_test.c
@@ -127,7 +127,7 @@
 		exit (1) ;
 		} ;
 
-	if (src_data.input_frames_used != input_len)
+	if (abs (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) ;